函数逻辑报告 |
Source Code:kernel\bpf\syscall.c |
Create Date:2022-07-27 14:07:03 |
Last Modify:2022-05-19 18:06:12 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:bpf_map_get_fd_by_id
函数原型:static int bpf_map_get_fd_by_id(const union bpf_attr *attr)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const union bpf_attr * | attr |
2347 | 如果helper macro to check that unused fields 'union bpf_attr' are zero (BPF_MAP_GET_FD_BY_ID)或open_flags按位与BPF_OBJ_FLAG_MASK的反则返回:负EINVAL |
2354 | f_flags等于bpf_get_file_flag(open_flags) |
2358 | spin_lock_bh( & map_idr_lock) |
2360 | 如果map则map等于map_idr_lock should have been held |
2364 | spin_unlock_bh( & map_idr_lock) |
2369 | fd等于bpf_map_new_fd(map, f_flags) |
2370 | 如果fd小于0则bpf_map_put_with_uref(map) |
2373 | 返回:fd |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |