The dmesg command can also be used to print and control the kernel ring buffer.
dmesg命令也可用于打印和控制内核环缓冲区。
Note that kernel output goes to the kernel ring buffer and not to stdout, because stdout is process specific.
注意,内核的输出进到了内核回环缓冲区中,而不是打印到stdout上,这是因为stdout是进程特有的环境。
You may display the kernel ring buffer using the dmesg command, which displays these messages on standard output.
可以使用dmesg命令显示内核环缓冲区,会在标准输出上显示这些消息。
This command USES the klogctl system call to read the kernel ring buffer and emit it to standard output (stdout).
这个命令使用klogctl系统调用来读取内核环缓冲区,并将它转发到标准输出(stdout)。
The KERN_INFO symbol is a string that you can use to filter information from entering the kernel ring buffer (much like syslog).
kern_info符号是一个字符串,可以用来对进入内核回环缓冲区的信息进行过滤(非常类似于syslog)。
The kernel ring buffer is also used for some events after the system is booted. These include certain program failures and hot-plug events.
在系统启动后,内核环缓冲区也可以用于一些事件,其中包括某些程序失败和热插拔事件。
The size of the kernel ring buffer was originally 4kb but in recent kernels is sized at 16kb (and up to 1mb, depending on the architecture).
内核缓冲缓冲区的大小初始值为4kb,但是最新的内核大小已经升级到16 KB(在不同的体系架构上,这个值最高可以达到1mb)。
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)的特殊函数复制到内核日志缓冲区中。
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)的特殊函数复制到内核日志缓冲区中。
应用推荐