函数逻辑报告 |
Source Code:kernel\bpf\syscall.c |
Create Date:2022-07-27 14:05:21 |
Last Modify:2022-05-19 18:06:12 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:map_delete_elem
函数原型:static int map_delete_elem(union bpf_attr *attr)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
union bpf_attr * | attr |
1066 | __user乘ukey等于u64_to_user_ptr(key) |
1073 | 如果helper macro to check that unused fields 'union bpf_attr' are zero (BPF_MAP_DELETE_ELEM)则返回:负EINVAL |
1077 | map等于 error is returned, fd is released.* On success caller should complete fd access with matching fdput() |
1080 | 如果非map_get_sys_perms(map, f)按位与Has write method(s) 的值则 |
1085 | key等于__bpf_copy_key(ukey, key_size) |
1086 | 如果是错误则 |
1091 | 如果bpf_map_is_dev_bound(map)则 |
1092 | err等于bpf_map_offload_delete_elem(map, key) |
1093 | 转到:out |
1094 | 否则如果IS_FD_PROG_ARRAY(map)则 |
1095 | err等于map_delete_elem(map, key) |
1096 | 转到:out |
1099 | 禁止抢占() |
1102 | err等于map_delete_elem(map, key) |
1105 | 禁用抢占和中断() |
1106 | maybe_wait_bpf_programs(map) |
1107 | out : |
1109 | err_put : |
1111 | 返回:err |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |