Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:SPDX-License-Identifier: GPL-2.0-only

Proto:int pcpu_freelist_init(struct pcpu_freelist *s)

Type:int

Parameter:

TypeParameterName
struct pcpu_freelist *s
10  freelist = alloc_percpu(structpcpu_freelist_head)
11  If Not freelist Then Return -ENOMEM
14  for_each_possible_cpu(cpu)
15  head = per_cpu_ptr(freelist, cpu)
17  raw_spin_lock_init( & lock)
18  first = NULL
20  Return 0
Caller
NameDescribe
prealloc_elems_and_freelist