慢慢欣赏linux quiet参数的作用
cmdline从bootloader传递给kernel 例如cmdline=...quiet... =>early_param("quiet", quiet_kernel);//解析出quiet =>int __init quiet_kernel(char *str) =>console_
cmdline从bootloader传递给kernel 例如cmdline=...quiet...
=>early_param("quiet", quiet_kernel);//解析出quiet
=>int __init quiet_kernel(char *str)
=>console_loglevel = 4;//printk控制打印级别
=>#define console_loglevel (console_printk[0])
=>int console_printk[4] = {
DEFAULT_CONSOLE_LOGLEVEL, /* console_loglevel */
=>#define DEFAULT_CONSOLE_LOGLEVEL 7
DEFAULT_MESSAGE_LOGLEVEL, /* default_message_loglevel */
MINIMUM_CONSOLE_LOGLEVEL, /* minimum_console_loglevel */
DEFAULT_CONSOLE_LOGLEVEL, /* default_console_loglevel */
};
更多推荐
所有评论(0)