Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk_safe.c Create Date:2022-07-28 10:07:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:void printk_safe_flush_on_panic(void)

Type:void

Parameter:Nothing

272  If raw_spin_is_locked( & The logbuf_lock protects kmsg buffer, indices, counters. This can be taken* within the scheduler's rq lock. It must be released before calling* console_unlock() or anything else that might wake up a process.) Then
273  If num_online_cpus() > 1 Then Return
276  Generic 'turn off all lock debugging' function:
277  raw_spin_lock_init( & The logbuf_lock protects kmsg buffer, indices, counters. This can be taken* within the scheduler's rq lock. It must be released before calling* console_unlock() or anything else that might wake up a process.)
280  printk_safe_flush - flush all per-cpu nmi buffers.* The buffers are flushed automatically via IRQ work. This function* is useful only when someone wants to be sure that all buffers have* been flushed at some point.
Caller
NameDescribe
panicpanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
crash_kexec