函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:unregister_console

函数原型:int unregister_console(struct console *console)

返回类型:int

参数:

类型参数名称
struct console *console
2819  打印信息("%sconsole [%s%d] disabled\n", (flags & CON_BOOT) ? "boot" : "", name, index)
2823  res等于_braille_unregister_console(console)
2824  如果res则返回:res
2827  res等于1
2828  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.
2829  如果console_drivers恒等于console
2830  console_drivers等于next
2831  res等于0
2832  否则如果console_drivers
2833 a循环
2835  如果a恒等于console
2836  next等于next
2837  res等于0
2838  退出
2843  如果非resflags按位与Use the extended output format a la /dev/kmsg Number of registered extended console drivers. 自减
2850  如果console_drivers不等于NULLflags按位与Last on the command line flags或等于Last on the command line
2853  flags与等于CON_ENABLED的反
2854  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()
2855  console_sysfs_notify()
2856  返回:res
调用者
名称描述
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
printk_late_initSome boot consoles access data that is in the init section and which will* be discarded after the initcalls have been run
kgdb_unregister_callbacks