函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:btf_enum_check_member

函数原型:static int btf_enum_check_member(struct btf_verifier_env *env, const struct btf_type *struct_type, const struct btf_member *member, const struct btf_type *member_type)

返回类型:int

参数:

类型参数名称
struct btf_verifier_env *env
const struct btf_type *struct_type
const struct btf_member *member
const struct btf_type *member_type
2375  struct_bits_off等于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.
2378  如果BITS_PER_BYTE_MASKED(struct_bits_off)则
2379  btf_verifier_log_member(env, struct_type, member, "Member is not byte aligned")
2381  返回:负EINVAL
2384  struct_size等于size
2385  bytes_offset等于BITS_ROUNDDOWN_BYTES(struct_bits_off)
2386  如果struct_sizebytes_offset小于sizeof(int)则
2387  btf_verifier_log_member(env, struct_type, member, "Member exceeds struct_size")
2389  返回:负EINVAL
2392  返回:0