函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\printk\printk.c Create Date:2022-07-27 11:05:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:get record by index; idx must point to valid msg

函数原型:static struct printk_log *log_from_idx(unsigned int idx)

返回类型:struct printk_log

参数:

类型参数名称
unsigned intidx
490  msg等于log_bufidx
496  如果非 length of entire record 则返回:log_buf
498  返回:msg
调用者
名称描述
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