Function report |
Source Code:kernel\bpf\arraymap.c |
Create Date:2022-07-28 13:11:09 |
| 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_copy
Proto:int bpf_percpu_array_copy(struct bpf_map *map, void *key, void *value)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_map * | map | |
| void * | key | |
| void * | value |
| 257 | off = 0 |
| 260 | If Value for the false possibility is greater at compile time(index >= max_entries) Then Return -ENOENT |
| 269 | pptr = pptrs[index & index_mask] |
| 270 | for_each_possible_cpu(cpu) |
| 271 | bpf_long_memcpy(value + off, per_cpu_ptr(pptr, cpu), size) |
| 275 | Return 0 |
| Name | Describe |
|---|---|
| map_lookup_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 |