Function report |
Source Code:kernel\bpf\devmap.c |
Create Date:2022-07-28 13:21:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dev_map_alloc
Proto:static struct bpf_map *dev_map_alloc(union bpf_attr *attr)
Type:struct bpf_map
Parameter:
Type | Parameter | Name |
---|---|---|
union bpf_attr * | attr |
181 | If Not Check operation authority Then Return ERR_PTR( - EPERM) |
184 | dtab = 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). |
188 | err = dev_map_init_map(dtab, attr) |
189 | If err Then |
194 | spin_lock( & dev_map_lock) |
196 | spin_unlock( & dev_map_lock) |
198 | 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 |