Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:prealloc_elems_and_freelist

Proto:static int prealloc_elems_and_freelist(struct bpf_stack_map *smap)

Type:int

Parameter:

TypeParameterName
struct bpf_stack_map *smap
63  elem_size = sizeof(structstack_map_bucket) + value_size
66  elems = bpf_map_area_alloc(elem_size * max_entries, numa_node)
68  If Not elems Then Return -ENOMEM
71  err = SPDX-License-Identifier: GPL-2.0-only
72  If err Then Go to free_elems
75  pcpu_freelist_populate( & freelist, elems, elem_size, max_entries)
77  Return 0
79  free_elems :
80  bpf_map_area_free(elems)
81  Return err
Caller
NameDescribe
stack_map_allocCalled from syscall