Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:Called from syscall

Proto:int array_map_alloc_check(union bpf_attr *attr)

Type:int

Parameter:

TypeParameterName
union bpf_attr *attr
51  percpu = one of enum bpf_map_type == BPF_MAP_TYPE_PERCPU_ARRAY
52  numa_node = bpf_map_attr_numa_node(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
Caller
NameDescribe
fd_array_map_alloc_check
reuseport_array_alloc_check