函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk.c Create Date:2022-07-27 11:06:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__add_preferred_console

函数原型:static int __add_preferred_console(char *name, int idx, char *options, char *brl_options)

返回类型:int

参数:

类型参数名称
char *name
intidx
char *options
char *brl_options
2127 i小于Array of consoles built from command line options (console=) Name of the driver [0]循环
2130  如果字符串比较恒等于0且 Minor dev. to use 恒等于idx
2131  如果非brl_optionspreferred_console等于i
2133  返回:0
2136  如果i恒等于Array of consoles built from command line options (console=)则返回:负E2BIG
2138  如果非brl_optionspreferred_console等于i
2140  长字符串复制
2141  Options for the driver 等于options
2142  braille_set_options(c, brl_options)
2144  Minor dev. to use 等于idx
2145  返回:0
调用者
名称描述
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