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:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:printk_safe_init

Proto:void __init printk_safe_init(void)

Type:void

Parameter:Nothing

393  for_each_possible_cpu(cpu)
396  s = per_cpu(safe_print_seq, cpu)
397  init_irq_work( & IRQ work that flushes the buffer , Flush data from the associated per-CPU buffer. The function* can be called either via IRQ work or independently.)
410  The "volatile" is due to gcc bugs ()
411  printk() could not take logbuf_lock in NMI context = 1
414  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.