Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\reuseport_array.c Create Date:2022-07-28 13:29:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:reuseport_array_alloc

Proto:static struct bpf_map *reuseport_array_alloc(union bpf_attr *attr)

Type:struct bpf_map

Parameter:

TypeParameterName
union bpf_attr *attr
152  numa_node = bpf_map_attr_numa_node(attr)
157  If Not Check operation authority Then Return ERR_PTR( - EPERM)
160  array_size = size of array
161  array_size += max number of entries in a map * size of *
163  err = bpf_map_charge_init( & mem, array_size)
164  If err Then Return ERR_PTR(err)
168  array = bpf_map_area_alloc(array_size, numa_node)
169  If Not array Then
170  bpf_map_charge_finish( & mem)
171  Return ERR_PTR( - ENOMEM)
175  bpf_map_init_from_attr( & map, attr)
176  bpf_map_charge_move( & memory, & mem)
178  Return map