mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
302db0f5b3
Add btf_find_struct_member() API to search a member of a given data structure or union from the member's name. Link: https://lore.kernel.org/all/169272156248.160970.8868479822371129043.stgit@devnote2/ Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Reviewed-by: Alan Maguire <alan.maguire@oracle.com> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
11 lines
410 B
C
11 lines
410 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#include <linux/btf.h>
|
|
|
|
const struct btf_type *btf_find_func_proto(const char *func_name,
|
|
struct btf **btf_p);
|
|
const struct btf_param *btf_get_func_param(const struct btf_type *func_proto,
|
|
s32 *nr);
|
|
const struct btf_member *btf_find_struct_member(struct btf *btf,
|
|
const struct btf_type *type,
|
|
const char *member_name,
|
|
u32 *anon_offset);
|