函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk.c Create Date:2022-07-27 11:06:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static void call_console_drivers(const char *ext_text, size_t ext_len, const char *text, size_t len)

返回类型:void

参数:

类型参数名称
const char *ext_text
size_text_len
const char *text
size_tlen
1773  trace_console_rcuidle(text, len)
1775  如果非console_drivers则返回
1779  如果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.则继续下一循环
1781  如果非flags按位与CON_ENABLED的值则继续下一循环
1783  如果非write则继续下一循环
1785  如果非cpu_online(当前cpu ID())且非flags按位与Safe to call when cpu is offline 的值则继续下一循环
1788  如果flags按位与Use the extended output format a la /dev/kmsg write(con, ext_text, ext_len)
1790  否则write(con, text, len)
调用者
名称描述
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()