Function report |
Source Code:kernel\bpf\xskmap.c |
Create Date:2022-07-28 13:24:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:xsk_map_alloc
Proto:static struct bpf_map *xsk_map_alloc(union bpf_attr *attr)
Type:struct bpf_map
Parameter:
Type | Parameter | Name |
---|---|---|
union bpf_attr * | attr |
79 | If Not Check operation authority Then Return ERR_PTR( - EPERM) |
82 | If max number of entries in a map == 0 || size of key in bytes != 4 || size of value in bytes != 4 || BPF_MAP_CREATE related * flags defined above. & ~( Specify numa node during map creation | Flags for accessing BPF object from syscall side. | BPF_F_WRONLY) Then Return ERR_PTR( - EINVAL) |
91 | err = bpf_map_charge_init( & mem, cost) |
95 | m = bpf_map_area_alloc(size, numa_node) |
96 | If Not m Then |
97 | bpf_map_charge_finish( & mem) |
101 | bpf_map_init_from_attr( & map, attr) |
102 | bpf_map_charge_move( & memory, & mem) |
105 | flush_list = alloc_percpu(structlist_head) |
106 | If Not flush_list Then |
112 | for_each_possible_cpu(cpu) |
115 | 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 |