Function report |
Source Code:kernel\bpf\syscall.c |
Create Date:2022-07-28 12:51:40 |
Last Modify:2022-05-19 18:06:12 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:find_and_alloc_map
Proto:static struct bpf_map *find_and_alloc_map(union bpf_attr *attr)
Type:struct bpf_map
Parameter:
Type | Parameter | Name |
---|---|---|
union bpf_attr * | attr |
105 | type = one of enum bpf_map_type |
109 | If type >= ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(bpf_map_types) Then Return ERR_PTR( - EINVAL) |
112 | ops = bpf_map_types[type] |
116 | If map_alloc_check Then |
121 | If ifindex of netdev to create on Then ops = bpf_map_offload_ops |
126 | The first two cachelines with read-mostly members of which some * are also accessed in fast-path (e.g. ops, max_entries). = ops |
128 | Return map |
Name | Describe |
---|---|
map_create | alled via syscall |
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 |