printk_safe_flush_on_panic printk_safe_flush_on_panic - flush all per-cpu nmi buffers when the system* goes down.* Similar to printk_safe_flush() but it can be called even in NMI context when* the system goes down. It does the best effort to get NMI messages into printk_safe_init...
当CPU停止时,其他CPU打印的消息可能永远不会被最终确定。 - 完全阻止非恐慌CPU上的新printk()调用。在进入恐慌模式之前打印回溯。 -在console_flush_on_panic()中完全不获取console_lock。原始代码尝试了try_lock()/console_unlock()。当panic()发生在调度器代码中时,解锁部分可能会导致死锁。 - 修复64位序列号...
*handover = console_lock_spinning_disable_and_check(cookie); printk_safe_exit_irqrestore(flags); return progress; } /** * __nbcon_atomic_flush_pending_con - Flush specified nbcon console using its * write_atomic() callback * @con: The nbcon console to flush17...
printf是C语言标准库函数,定义于头文件<stdio.h>。 而在linux内核中是无法使用printf函数的,取而代之的是printk函数。printk在内核源码中用来记录日志信息的函数,只能在内核源码范围内使用,用法类似于printf函数。 一个较大的差别在于printk支持多种日志级别,从而允许printk根据消息的等级选择性进行打印。 printk函数主要...
Elixir Cross Referencer - Explore source code in your browser - Particularly useful for the Linux kernel and other low-level projects in C/C++ (bootloaders, C libraries...)