| Function report | 
| Source Code: kernel\bpf\local_storage.c | Create Date:2022-07-28 13:14:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:bpf_percpu_cgroup_storage_update
Proto:int bpf_percpu_cgroup_storage_update(struct bpf_map *_map, void *_key, void *value, u64 map_flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct bpf_map * | _map | |
| void * | _key | |
| void * | value | |
| u64 | map_flags | 
| 203 | map = map_to_storage(_map) | 
| 206 | off = 0 | 
| 209 | If map_flags != create new element or update existing && map_flags != update existing element Then Return -EINVAL | 
| 213 | storage = cgroup_storage_lookup(map, key, false) | 
| 214 | If Not storage Then | 
| 216 | Return -ENOENT | 
| 226 | for_each_possible_cpu(cpu) | 
| 227 | bpf_long_memcpy(per_cpu_ptr(percpu_buf, cpu), value + off, size) | 
| 232 | 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 |