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

Proto:static inline int can_use_console(void)

Type:int

Parameter:Nothing

2350  Return cpu_online(These macros fold the SMP functionality into a single CPU system()) || Check if we have any console that is capable of printing while cpu is* booting or shutting down. Requires console_sem.
Caller
NameDescribe
console_unlocksole_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()