| Function report | 
| Source Code: kernel\bpf\cpumap.c | Create Date:2022-07-28 13:23:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:cpu_map_update_elem
Proto:static int cpu_map_update_elem(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 | 
| 479 | If Value for the false possibility is greater at compile time(map_flags > update existing element ) Then Return -EINVAL | 
| 481 | If Value for the false possibility is greater at compile time(key_cpu >= max_entries) Then Return -E2BIG | 
| 483 | If Value for the false possibility is greater at compile time(map_flags == create new element if it didn't exist ) Then Return -EEXIST | 
| 485 | If Value for the false possibility is greater at compile time(qsize > 16384) Then Return -EOVERFLOW | 
| 489 | If Not cpu_possible(key_cpu) Then Return -ENODEV | 
| 492 | If qsize == 0 Then | 
| 493 | rcpu = NULL | 
| 494 | Else | 
| 496 | rcpu = __cpu_map_entry_alloc(qsize, key_cpu, id) | 
| 504 | 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 |