Function report |
Source Code:kernel\bpf\arraymap.c |
Create Date:2022-07-28 13:10:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Called from syscall
Proto:int array_map_alloc_check(union bpf_attr *attr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
union bpf_attr * | attr |
55 | If max number of entries in a map == 0 || size of key in bytes != 4 || size of value in bytes == 0 || BPF_MAP_CREATE related * flags defined above. & ~ARRAY_CREATE_FLAG_MASK || Not bpf_map_flags_access_ok( BPF_MAP_CREATE related * flags defined above.) || percpu && numa_node != NUMA_NO_NODE Then Return -EINVAL |
62 | If one of enum bpf_map_type != BPF_MAP_TYPE_ARRAY && BPF_MAP_CREATE related * flags defined above. & Enable memory-mapping BPF map Then Return -EINVAL |
66 | If size of value in bytes > Maximum allocatable size Then Return -E2BIG |
72 | Return 0 |
Name | Describe |
---|---|
fd_array_map_alloc_check | |
reuseport_array_alloc_check |
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 |