函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:btf_member_bit_offset

函数原型:static u32 btf_member_bit_offset(const struct btf_type *struct_type, const struct btf_member *member)

返回类型:u32

参数:

类型参数名称
const struct btf_type *struct_type
const struct btf_member *member
462  返回:如果btf_type_kflag(struct_type)则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.)否则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.
调用者
名称描述
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