Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get next record; idx must point to valid msg

Proto:static unsigned int log_next(unsigned int idx)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intidx
504  msg = log_buf + idx
512  If Not length of entire record Then
513  msg = log_buf
514  Return length of entire record
516  Return idx + length of entire record
Caller
NameDescribe
log_make_free_space
devkmsg_read
syslog_print
syslog_print_all
do_syslog
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()
kmsg_dump_get_line_nolockkmsg_dump_get_line_nolock - retrieve one kmsg log line (unlocked version)*@dumper: registered kmsg dumper*@syslog: include the "<4>" prefixes*@line: buffer to copy the line to*@size: maximum size of the buffer*@len: length of line placed into buffer*
kmsg_dump_get_bufferkmsg_dump_get_buffer - copy kmsg log lines*@dumper: registered kmsg dumper*@syslog: include the "<4>" prefixes*@buf: buffer to copy the line to*@size: maximum size of the buffer*@len: length of line placed into buffer* Start at the end of the kmsg buffer