diff options
| author | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-09-25 13:12:23 +0900 |
|---|---|---|
| committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2026-10-12 19:01:56 +0900 |
| commit | 3ccfe2a1a85f3639d770c9efe153ffdc58c60ac1 (patch) | |
| tree | c8987de3e3d3343317ccf6b18f242cb90cf41aa9 /include/linux/kdebug.h | |
| parent | 06e0d3b89da12f24ed5ed434acc8e2cb504f5e4f (diff) | |
tracing/probes: Clarify btf_find_struct_member() container parameter and add kernel-doc
btf_find_struct_member() returns the containing structure or union type
(which can be an inner anonymous struct/union rather than the outer
passed type) via its last parameter. However, the parameter was named
@member_type, which easily confuses readers and static analyzers into
thinking it returns the member field's own datatype.
Rename @member_type to @container_type in the prototype, definition,
and callers to make the relationship explicit. Also convert the comment
above btf_find_struct_member() to standard kernel-doc format, documenting
all parameters and return values.
Link: https://lore.kernel.org/all/179030954365.77418.17193777972248047975.stgit@devnote2/
Assisted-by: LLM
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'include/linux/kdebug.h')
0 files changed, 0 insertions, 0 deletions
