Function report |
Source Code:kernel\bpf\arraymap.c |
Create Date:2022-07-28 13:11:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ly called from syscall
Proto:int bpf_fd_array_map_update_elem(struct bpf_map *map, struct file *map_file, void *key, void *value, u64 map_flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_map * | map | |
| struct file * | map_file | |
| void * | key | |
| void * | value | |
| u64 | map_flags |
| 578 | If map_flags != create new element or update existing Then Return -EINVAL |
| 581 | If index >= max_entries Then Return -E2BIG |
| 585 | new_ptr = map_fd_get_ptr(map, map_file, ufd) |
| 589 | If map_poke_run Then |
| 590 | mutex_lock( & poke_mutex) |
| 592 | map_poke_run(map, index, old_ptr, new_ptr) |
| 594 | Else |
| 598 | If old_ptr Then map_fd_put_ptr(old_ptr) |
| 600 | 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 |