Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:console_unblank

Proto:void console_unblank(void)

Type:void

Parameter:Nothing

2533  If Low level drivers may need that to know if they can schedule in* their unblank() callback or not. So let's export it. Then
2534  If down_trylock_console_sem() != 0 Then Return
2536  Else 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  If flags & CON_ENABLED && unblank Then unblank()
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()