Function report |
Source Code:kernel\bpf\reuseport_array.c |
Create Date:2022-07-28 13:29:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:reuseport_array_alloc
Proto:static struct bpf_map *reuseport_array_alloc(union bpf_attr *attr)
Type:struct bpf_map
Parameter:
Type | Parameter | Name |
---|---|---|
union bpf_attr * | attr |
152 | numa_node = bpf_map_attr_numa_node(attr) |
157 | If Not Check operation authority Then Return ERR_PTR( - EPERM) |
160 | array_size = size of array |
161 | array_size += max number of entries in a map * size of * |
163 | err = bpf_map_charge_init( & mem, array_size) |
168 | array = bpf_map_area_alloc(array_size, numa_node) |
169 | If Not array Then |
170 | bpf_map_charge_finish( & mem) |
175 | bpf_map_init_from_attr( & map, attr) |
176 | bpf_map_charge_move( & memory, & mem) |
178 | 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 |