Function report |
Source Code:kernel\bpf\syscall.c |
Create Date:2022-07-28 12:52:43 |
Last Modify:2022-05-19 18:06:12 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:map_delete_elem
Proto:static int map_delete_elem(union bpf_attr *attr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
union bpf_attr * | attr |
1066 | __user * ukey = u64_to_user_ptr(key) |
1073 | If helper macro to check that unused fields 'union bpf_attr' are zero (BPF_MAP_DELETE_ELEM) Then Return -EINVAL |
1077 | map = error is returned, fd is released.* On success caller should complete fd access with matching fdput() |
1080 | If Not (map_get_sys_perms(map, f) & Has write method(s) ) Then |
1085 | key = __bpf_copy_key(ukey, key_size) |
1091 | If bpf_map_is_dev_bound(map) Then |
1092 | err = bpf_map_offload_delete_elem(map, key) |
1093 | Go to out |
1094 | Else if IS_FD_PROG_ARRAY(map) Then |
1095 | err = map_delete_elem(map, key) |
1096 | Go to out |
1102 | err = map_delete_elem(map, key) |
1105 | preempt_enable() |
1106 | maybe_wait_bpf_programs(map) |
1107 | out : |
1109 | err_put : |
1111 | Return err |
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 |