| Function report | 
| Source Code: kernel\bpf\arraymap.c | Create Date:2022-07-28 13:11:16 | 
| 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_array_update
Proto:int bpf_percpu_array_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 | 
| 341 | off = 0 | 
| 344 | If Value for the false possibility is greater at compile time(map_flags > update existing element ) Then Return -EINVAL | 
| 348 | If Value for the false possibility is greater at compile time(index >= max_entries) Then Return -E2BIG | 
| 352 | If Value for the false possibility is greater at compile time(map_flags == create new element if it didn't exist ) Then Return -EEXIST | 
| 364 | pptr = pptrs[index & index_mask] | 
| 365 | for_each_possible_cpu(cpu) | 
| 366 | bpf_long_memcpy(per_cpu_ptr(pptr, cpu), value + off, size) | 
| 370 | Return 0 | 
| Name | Describe | 
|---|---|
| map_update_elem | 
| 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 |