函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:void console_lock(void)

返回类型:void

参数:

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  如果This is used for debugging the mess that is the VT code by* keeping track if we have the console semaphore held则返回
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
调用者
名称描述
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