Function report |
Source Code:kernel\bpf\queue_stack_maps.c |
Create Date:2022-07-28 13:14:52 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__stack_map_get
Proto:static int __stack_map_get(struct bpf_map *map, void *value, bool delete)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_map * | map | |
| void * | value | |
| bool | delete |
| 145 | qs = bpf_queue_stack(map) |
| 147 | err = 0 |
| 151 | raw_spin_lock_irqsave( & lock, flags) |
| 153 | If queue_stack_map_is_empty(qs) Then |
| 160 | If Value for the false possibility is greater at compile time(index >= max_entries + 1 ) Then index = max_entries + 1 - 1 |
| 163 | ptr = elements[index * value_size] |
| 164 | No 3D Now!(value, ptr, value_size) |
| 169 | out : |
| 170 | raw_spin_unlock_irqrestore( & lock, flags) |
| 171 | Return err |
| Name | Describe |
|---|---|
| stack_map_peek_elem | Called from syscall or from eBPF program |
| stack_map_pop_elem | Called from syscall or from eBPF program |
| 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 |