Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The debugfs/tracing/printk_formats file maps the addresses with* the ASCII formats that are used in the bprintk events in the* buffer. For userspace tools to be able to decode the events from

Proto:static const char **find_next_mod_format(int start_index, void *v, const char **fmt, loff_t *pos)

Type:char

Parameter:

TypeParameterName
intstart_index
void *v
const char **fmt
loff_t *pos
127  If list_empty - tests whether a list is empty*@head: the list to test. Then Return NULL
136  If Not v || start_index == pos Then
141  If start_index == pos Then Return fmt
143  start_index++
146  Return NULL
153  mod_fmt = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(v, typeof( * mod_fmt), fmt)
154  If next == modules trace_printk()'s formats are autosaved in struct trace_bprintk_fmt* which are queued on trace_bprintk_fmt_list. Then Return NULL
157  mod_fmt = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(next, typeof( * mod_fmt), list)
159  Return fmt
Caller
NameDescribe
find_next