函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sole_flush_on_panic - flush console content on panic*@mode: flush all messages in buffer or just the pending ones* Immediately output all pending messages no matter what.

函数原型:void console_flush_on_panic(enum con_flush_mode mode)

返回类型:void

参数:

类型参数名称
enum con_flush_modemode
2562  sole_trylock - try to lock the console system for exclusive use.* Try to acquire a lock which guarantees that the caller has exclusive* access to the console system and the console_drivers list.* returns 1 on success, and 0 on failure to acquire the lock.
2563  Flag: console code may call schedule() 等于0
2565  如果mode恒等于CONSOLE_REPLAY_ALL
2568  logbuf_lock_irqsave(flags)
2569  he next printk record to write to the console 等于dex and sequence number of the first record stored in the buffer
2570  console_idx等于log_first_idx
2571  logbuf_unlock_irqrestore(flags)
2573  sole_unlock - unlock the console system* Releases the console_lock which the caller holds on the console system* and the console driver list.* While the console_lock was held, console output may have been buffered* by printk()
调用者
名称描述
panicpanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
panic_print_sys_info