Files
linux/kernel
Masami Hiramatsu (Google) 3ccfe2a1a8 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) <[email protected]>
2026-10-12 19:01:56 +09:00
..
…
…
…
…
…
…
…
…
…
2026-09-16 18:44:03 +02:00
…
…
2025-10-29 10:29:54 +01:00
2026-01-26 19:07:13 -08:00
…
…