Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Call the console drivers, asking them to write out* log_buf[start] to log_buf[end - 1].* The console_lock must be held.

Proto:static void call_console_drivers(const char *ext_text, size_t ext_len, const char *text, size_t len)

Type:void

Parameter:

TypeParameterName
const char *ext_text
size_text_len
const char *text
size_tlen
1773  trace_console_rcuidle(text, len)
1775  If Not console_drivers Then Return
1779  If If exclusive_console is non-NULL then only this console is to be printed to. && con != If exclusive_console is non-NULL then only this console is to be printed to. Then Continue
1781  If Not (flags & CON_ENABLED) Then Continue
1783  If Not write Then Continue
1785  If Not cpu_online(smp_processor_id()) && Not (flags & Safe to call when cpu is offline ) Then Continue
1788  If flags & Use the extended output format a la /dev/kmsg Then write(con, ext_text, ext_len)
1790  Else write(con, text, len)
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()