函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk_safe.c Create Date:2022-07-27 11:07:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:printk_safe_init

函数原型:void __init printk_safe_init(void)

返回类型:void

参数:

393  遍历可用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.
调用者
名称描述
start_kernel启动内核