Linux kernel printk can skip messages?

被刻印的时光 ゝ 提交于 2019-12-24 16:23:28

问题


i see that in vprintk_emit kernel puts messages into log_buffer and then print them console_unlock->call_console_driver. But in case if we will put more messages than console (UART) could actually transmitt - what will be the behaviour? I see no blocking primitives near putting messages to log_buffer, so does it mean we will just delete some messages in the beginning of the log_buf to put some new (ring buffer)? So does it mean that printk messages could be lost? I'am talking about kernel 4.1 http://lxr.free-electrons.com/source/kernel/printk/printk.c#L1613

来源:https://stackoverflow.com/questions/31088266/linux-kernel-printk-can-skip-messages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!