函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Must be called under logbuf_lock.

函数原型:int vprintk_store(int facility, int level, const char *dict, size_t dictlen, const char *fmt, va_list args)

返回类型:int

参数:

类型参数名称
intfacility
intlevel
const char *dict
size_tdictlen
const char *fmt
va_listargs
1909  text等于textbuf
1911  lflags等于0
1917  text_len等于格式化输出字符串
1920  如果text_lentext[text_len - 1]恒等于'\n'则
1921  text_len自减
1922  lflags或等于xt ended with a newline
1926  如果facility恒等于0则
1929 kern_level等于printk_get_level(text)不等于0循环
1931  :kern_level == '0'...'7'
1932  如果level恒等于default (or last) loglevel level等于kern_level减'0'
1934  退出
1935  :kern_level恒等于'c'
1939  text_len减等于2
1940  text加等于2
1944  如果level恒等于default (or last) loglevel level等于default_message_loglevel
1947  如果dictlflags或等于xt ended with a newline
1950  返回:log_output(facility, level, lflags, dict, dictlen, text, text_len)
调用者
名称描述
vprintk_emit
vprintk_func