扩展阅读一:dmesg命令主要用途 主要应用: dmesg 用来 显示内核环缓冲区( kernel-ring buffer )内容,内核将各种消息存放在这里。在系统引导时,内核将与硬件和模块初始化相关的信息填到这个缓冲区中。
基于1个网页-相关网页
kernel ring buffer 包含内核缓冲信息 ; 于打印或者控制内核环形缓冲区
You may display the kernel ring buffer using the dmesg command, which displays these messages on standard output.
可以使用dmesg命令显示内核环缓冲区,会在标准输出上显示这些消息。
Note that kernel output goes to the kernel ring buffer and not to stdout, because stdout is process specific.
注意,内核的输出进到了内核回环缓冲区中,而不是打印到stdout上,这是因为stdout是进程特有的环境。
The string passed into printk is then copied into the kernel log buffer using a special function that manages the bounds of the ring (emit_log_char).
这个字符串会被传递给printk,然后它会被一个管理缓冲边界(emit_log_char)的特殊函数复制到内核日志缓冲区中。
应用推荐