Function report |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-28 13:19:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:btf_struct_check_member
Proto:static int btf_struct_check_member(struct btf_verifier_env *env, const struct btf_type *struct_type, const struct btf_member *member, const struct btf_type *member_type)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct btf_verifier_env * | env | |
const struct btf_type * | struct_type | |
const struct btf_member * | member | |
const struct btf_type * | member_type |
2113 | If BITS_PER_BYTE_MASKED(struct_bits_off) Then |
2114 | btf_verifier_log_member(env, struct_type, member, "Member is not byte aligned") |
2116 | Return -EINVAL |
2119 | struct_size = size |
2121 | If struct_size - bytes_offset < size Then |
2122 | btf_verifier_log_member(env, struct_type, member, "Member exceeds struct_size") |
2124 | Return -EINVAL |
2127 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |