Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk.c Create Date:2022-07-28 10:06:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__add_preferred_console

Proto:static int __add_preferred_console(char *name, int idx, char *options, char *brl_options)

Type:int

Parameter:

TypeParameterName
char *name
intidx
char *options
char *brl_options
2127  When i < Array of consoles built from command line options (console=) && Name of the driver [0] cycle
2131  If Not brl_options Then preferred_console = i
2133  Return 0
2136  If i == Array of consoles built from command line options (console=) Then Return -E2BIG
2138  If Not brl_options Then preferred_console = i
2140  Copy a NUL terminated string into a sized buffer
2141  Options for the driver = options
2142  braille_set_options(c, brl_options)
2144  Minor dev. to use = idx
2145  Return 0
Caller
NameDescribe
console_setupSet up a console. Called via do_early_param() in init/main.c* for each "console=" parameter in the boot command line.
add_preferred_consoleadd_preferred_console - add a device to the list of preferred consoles.*@name: device name*@idx: device index*@options: options for this console* The last preferred console added will be used for kernel messages* and stdin/out/err for init