函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:btf_type_by_id

函数原型:const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id)

返回类型:struct btf_type

参数:

类型参数名称
const struct btf *btf
u32type_id
579  如果type_id大于nr_types则返回:NULL
582  返回:types[type_id]
调用者
名称描述
kernel_type_name
check_ptr_to_btf_access
check_btf_func
check_attach_btf_id
btf_resolve_sizeResolve the size of a passed-in "type"* return type: type "u32[x][y]", i.e. BTF_KIND_ARRAY,* *type_size: (x * y * sizeof(u32)). Hence, *type_size always* corresponds to the return type.* *elem_type: u32* *total_nelems: (x * y)
btf_type_id_resolveThe input param "type_id" must point to a needs_resolve type
btf_type_id_size
btf_modifier_resolve
btf_var_resolve
btf_ptr_resolve
btf_array_resolve
btf_struct_resolve
btf_find_spin_lockd 'struct bpf_spin_lock' in map value.* return >= 0 offset if found* and < 0 in case of error
btf_struct_seq_show
btf_datasec_resolve
btf_datasec_seq_show
btf_func_proto_check
btf_func_check
btf_check_all_types
btf_get_prog_ctx_type
btf_parse_vmlinux
btf_ctx_access
btf_struct_access
__btf_resolve_helper_id
__get_type_size
btf_check_func_arg_match
btf_type_seq_show