Function report |
Source Code:kernel\bpf\hashtab.c |
Create Date:2022-07-28 13:09:54 |
| Last Modify:2022-05-23 09:15:29 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_flags
Proto:static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, u64 map_flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_htab * | htab | |
| struct htab_elem * | l_old | |
| u64 | map_flags |
| 807 | If l_old && (map_flags & ~spin_lock-ed map_lookup/map_update ) == create new element if it didn't exist Then Return -EEXIST |
| 811 | If Not l_old && (map_flags & ~spin_lock-ed map_lookup/map_update ) == update existing element Then Return -ENOENT |
| 815 | Return 0 |
| Name | Describe |
|---|---|
| htab_map_update_elem | Called from syscall or from eBPF program |
| htab_lru_map_update_elem | |
| __htab_percpu_map_update_elem | |
| __htab_lru_percpu_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 |