Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check if we have any console that is capable of printing while cpu is* booting or shutting down. Requires console_sem.

Proto:static int have_callable_console(void)

Type:int

Parameter:Nothing

2333  r_each_console() allows you to iterate on each console(con)
2334  If flags & CON_ENABLED && flags & Safe to call when cpu is offline Then Return 1
2338  Return 0
Caller
NameDescribe
can_use_consoleCan we actually use the console at this time on this cpu?* Console drivers may assume that per-cpu resources have been allocated. So* unless they're explicitly marked as being able to cope (CON_ANYTIME) don't* call them until this CPU is officially up.