函数逻辑报告 |
Source Code:kernel\bpf\syscall.c |
Create Date:2022-07-27 14:05:26 |
| Last Modify:2022-05-19 18:06:12 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:map_get_next_key
函数原型:static int map_get_next_key(union bpf_attr *attr)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| union bpf_attr * | attr |
| 1119 | __user乘ukey等于u64_to_user_ptr(key) |
| 1120 | __user乘unext_key等于u64_to_user_ptr(next_key) |
| 1127 | 如果helper macro to check that unused fields 'union bpf_attr' are zero (BPF_MAP_GET_NEXT_KEY)则返回:负EINVAL |
| 1131 | map等于 error is returned, fd is released.* On success caller should complete fd access with matching fdput() |
| 1134 | 如果非map_get_sys_perms(map, f)按位与Has read method(s) 的值则 |
| 1139 | 如果ukey则 |
| 1145 | 否则 |
| 1146 | key = NULL |
| 1154 | 如果bpf_map_is_dev_bound(map)则 |
| 1160 | err等于map_get_next_key(map, key, next_key) |
| 1162 | out : |
| 1163 | 如果err则转到:free_next_key |
| 1167 | 如果copy_to_user(unext_key, next_key, key_size)不等于0则转到:free_next_key |
| 1170 | err等于0 |
| 1172 | free_next_key : |
| 1174 | free_key : |
| 1176 | err_put : |
| 1178 | 返回:err |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |