函数逻辑报告 |
Source Code:kernel\bpf\btf.c |
Create Date:2022-07-27 14:36:53 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:btf_enum_check_kflag_member
函数原型:static int btf_enum_check_kflag_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 |
2401 | int_bitsize等于sizeof(int)乘BITS_PER_BYTE |
2405 | 如果非nr_bits则 |
2406 | 如果BITS_PER_BYTE_MASKED(struct_bits_off)则 |
2407 | btf_verifier_log_member(env, struct_type, member, "Member is not byte aligned") |
2409 | 返回:负EINVAL |
2412 | nr_bits等于int_bitsize |
2413 | 否则如果nr_bits大于int_bitsize则 |
2414 | btf_verifier_log_member(env, struct_type, member, "Invalid member bitfield_size") |
2416 | 返回:负EINVAL |
2419 | struct_size等于size |
2421 | 如果struct_size小于bytes_end则 |
2422 | btf_verifier_log_member(env, struct_type, member, "Member exceeds struct_size") |
2424 | 返回:负EINVAL |
2427 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |