Function report |
Source Code:kernel\bpf\arraymap.c |
Create Date:2022-07-28 13:11:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:prog_array_map_alloc
Proto:static struct bpf_map *prog_array_map_alloc(union bpf_attr *attr)
Type:struct bpf_map
Parameter:
Type | Parameter | Name |
---|---|---|
union bpf_attr * | attr |
830 | aux = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
834 | INIT_WORK( & work, prog_array_map_clear_deferred) |
836 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & poke_mutex) |
838 | map = array_map_alloc(attr) |
844 | ({ |
847 | Return map |
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 |