Function report |
Source Code:kernel\bpf\local_storage.c |
Create Date:2022-07-28 13:14:08 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cgroup_storage_update_elem
Proto:static int cgroup_storage_update_elem(struct bpf_map *map, void *_key, void *value, u64 flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_map * | map | |
| void * | _key | |
| void * | value | |
| u64 | flags |
| 134 | If Value for the false possibility is greater at compile time(flags & ~(spin_lock-ed map_lookup/map_update | update existing element | create new element if it didn't exist )) Then Return -EINVAL |
| 137 | If Value for the false possibility is greater at compile time(flags & create new element if it didn't exist ) Then Return -EINVAL |
| 140 | If Value for the false possibility is greater at compile time((flags & spin_lock-ed map_lookup/map_update ) && !map_value_has_spin_lock(map)) Then Return -EINVAL |
| 144 | storage = cgroup_storage_lookup((structbpf_cgroup_storage_map * )map, key, false) |
| 149 | If flags & spin_lock-ed map_lookup/map_update Then |
| 150 | copy_map_value_locked(map, data, value, false) |
| 151 | Return 0 |
| 161 | No 3D Now!( & data[0], value, value_size) |
| 162 | check_and_init_map_lock(map, data) |
| 167 | Return 0 |
| 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 |