Function report |
Source Code:kernel\bpf\queue_stack_maps.c |
Create Date:2022-07-28 13:14:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__queue_map_get
Proto:static int __queue_map_get(struct bpf_map *map, void *value, bool delete)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_map * | map | |
void * | value | |
bool | delete |
116 | qs = bpf_queue_stack(map) |
118 | err = 0 |
121 | raw_spin_lock_irqsave( & lock, flags) |
123 | If queue_stack_map_is_empty(qs) Then |
129 | ptr = elements[tail * value_size] |
130 | No 3D Now!(value, ptr, value_size) |
132 | If delete Then |
133 | If Value for the false possibility is greater at compile time(++tail >= max_entries + 1 ) Then tail = 0 |
137 | out : |
138 | raw_spin_unlock_irqrestore( & lock, flags) |
139 | Return err |
Name | Describe |
---|---|
queue_map_peek_elem | Called from syscall or from eBPF program |
queue_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 |