Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:unregister_console

Proto:int unregister_console(struct console *console)

Type:int

Parameter:

TypeParameterName
struct console *console
2819  pr_info("%sconsole [%s%d] disabled\n", (flags & CON_BOOT) ? "boot" : "", name, index)
2823  res = _braille_unregister_console(console)
2824  If res Then Return 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  If console_drivers == console Then
2830  console_drivers = next
2831  res = 0
2832  Else if console_drivers Then
2833  When a cycle
2835  If a == console Then
2836  next = next
2837  res = 0
2838  Break
2843  If Not res && flags & Use the extended output format a la /dev/kmsg Then Number of registered extended console drivers. --
2850  If console_drivers != NULL && flags & Last on the command line Then 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  Return res
Caller
NameDescribe
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