Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sole_cpu_notify - print deferred console messages after CPU hotplug*@cpu: unused* If printk() is called from a CPU that is not online yet, the messages* will be printed on the console only if there are CON_ANYTIME consoles

Proto:static int console_cpu_notify(unsigned int cpu)

Type:int

Parameter:

TypeParameterName
unsigned intcpu
2269  If Not cpuhp_tasks_frozen Then
2271  If sole_trylock - try to lock the console system for exclusive use.* Try to acquire a lock which guarantees that the caller has exclusive* access to the console system and the console_drivers list.* returns 1 on success, and 0 on failure to acquire the lock. Then 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()
2274  Return 0