Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:btf_member_bit_offset

Proto:static u32 btf_member_bit_offset(const struct btf_type *struct_type, const struct btf_member *member)

Type:u32

Parameter:

TypeParameterName
const struct btf_type *struct_type
const struct btf_member *member
462  Return If btf_type_kflag(struct_type) Then BTF_MEMBER_BIT_OFFSET(If the type info kind_flag is set, the btf_member offset* contains both member bitfield size and bit offset. The* bitfield size is set for bitfield members. If the type* info kind_flag is not set, the offset contains only bit* offset.) Else If the type info kind_flag is set, the btf_member offset* contains both member bitfield size and bit offset. The* bitfield size is set for bitfield members. If the type* info kind_flag is not set, the offset contains only bit* offset.
Caller
NameDescribe
btf_struct_check_meta
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_struct_access