AnsweredAssumed Answered

How to flush serial buffer (pr_notice/printk) in the early kernel initialization stage

Question asked by David XY Zhou on Feb 12, 2018
Latest reply on Feb 13, 2018 by David XY Zhou

Hi,

In the early stage of kernel initialization, I am using pr_notice (also printk( KERN_ALERT, etc.). When there is a udelay, for example udelay(5000), the printk messages are buffered. Can not find any way of flushing. I also tried console_unlock. It seems not working at all.

Is there any function all to flush printk immediately after the function call?

 

Thank you,

 

David Zhot

Outcomes