函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:console_unblank

函数原型:void console_unblank(void)

返回类型:void

参数:

2533  如果Low level drivers may need that to know if they can schedule in* their unblank() callback or not. So let's export it.
2534  如果down_trylock_console_sem()不等于0则返回
2536  否则sole_lock - lock the console system for exclusive use.* Acquires a lock which guarantees that the caller has* exclusive access to the console system and the console_drivers list.* Can sleep, returns nothing.
2539  This is used for debugging the mess that is the VT code by* keeping track if we have the console semaphore held等于1
2540  Flag: console code may call schedule() 等于0
2541  r_each_console() allows you to iterate on each console(c)
2542  如果flags按位与CON_ENABLEDunblankunblank()
2544  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()
调用者
名称描述
bust_spinlocks
panicpanic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.