Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:void console_lock(void)

Type:void

Parameter:Nothing

2287  might_sleep()
2289  Helper macros to handle lockdep when locking/unlocking console_sem. We use* macros instead of functions so that _RET_IP_ contains useful information.()
2290  If This is used for debugging the mess that is the VT code by* keeping track if we have the console semaphore held Then Return
2292  This is used for debugging the mess that is the VT code by* keeping track if we have the console semaphore held = 1
2293  Flag: console code may call schedule() = 1
Caller
NameDescribe
suspend_consolesuspend_console - suspend the console subsystem* This disables printk() while we go into suspend states
console_unblank
console_deviceReturn the console tty driver structure and its associated index
console_stopPrevent further output on the passed console device so that (for example)* serial drivers can disable console output before suspending a port, and can* re-enable output afterwards.
console_start
register_consoleThe console driver calls this routine during kernel initialization* to register the console printing procedure with printk() and to* print any messages that were printed by the kernel before the* console driver was initialized
unregister_console