Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:log_output

Proto:static size_t log_output(int facility, int level, enum log_flags lflags, const char *dict, size_t dictlen, char *text, size_t text_len)

Type:size_t

Parameter:

TypeParameterName
intfacility
intlevel
enum log_flagslflags
const char *dict
size_tdictlen
char *text
size_ttext_len
1873  caller_id = printk_caller_id()
1879  If length == 0 means unused buffer Then
1885  cont_flush()
1889  If Not text_len && lflags & xt is a fragment of a continuation line Then Return 0
1893  If Not (lflags & xt ended with a newline ) Then
1894  If cont_add(caller_id, facility, level, lflags, text, text_len) Then Return text_len
1899  Return sert record into the buffer, discard old ones, update heads
Caller
NameDescribe
vprintk_storeMust be called under logbuf_lock.