Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\btf.c Create Date:2022-07-28 13:17:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:btf_type_by_id

Proto:const struct btf_type *btf_type_by_id(const struct btf *btf, u32 type_id)

Type:struct btf_type

Parameter:

TypeParameterName
const struct btf *btf
u32type_id
579  If type_id > nr_types Then Return NULL
582  Return types[type_id]
Caller
NameDescribe
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