Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Must be called under logbuf_lock.

Proto:int vprintk_store(int facility, int level, const char *dict, size_t dictlen, const char *fmt, va_list args)

Type:int

Parameter:

TypeParameterName
intfacility
intlevel
const char *dict
size_tdictlen
const char *fmt
va_listargs
1909  text = textbuf
1911  lflags = 0
1917  text_len = vscnprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@args: Arguments for the format string* The return value is the
1920  If text_len && text[text_len - 1] == '\n' Then
1921  text_len--
1922  lflags |= xt ended with a newline
1926  If facility == 0 Then
1929  When (kern_level = printk_get_level(text)) != 0 cycle
1931  Case kern_level == '0'...'7'
1934  Break
1935  Case kern_level == 'c'
1939  text_len -= 2
1940  text += 2
1944  If level == default (or last) loglevel Then level = default_message_loglevel
1947  If dict Then lflags |= xt ended with a newline
1950  Return log_output(facility, level, lflags, dict, dictlen, text, text_len)
Caller
NameDescribe
vprintk_emit
vprintk_func