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 record by index; idx must point to valid msg

Proto:static struct printk_log *log_from_idx(unsigned int idx)

Type:struct printk_log

Parameter:

TypeParameterName
unsigned intidx
490  msg = log_buf + idx
496  If Not length of entire record Then Return log_buf
498  Return msg
Caller
NameDescribe
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