Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_prefix

Proto:static size_t print_prefix(const struct printk_log *msg, bool syslog, bool time, char *buf)

Type:size_t

Parameter:

TypeParameterName
const struct printk_log *msg
boolsyslog
booltime
char *buf
1291  len = 0
1293  If syslog Then len = print_syslog(( syslog facility << 3) | syslog level , buf)
1296  If time Then len += print_time( timestamp in nanoseconds , buf + len)
1299  len += print_caller(caller_id, buf + len)
1301  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_PRINTK_CALLER) || time Then
1302  buf[len++] = ' '
1303  buf[len] = '\0'
1306  Return len
Caller
NameDescribe
msg_print_text