函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\percpu_freelist.c Create Date:2022-07-27 14:28:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:SPDX-License-Identifier: GPL-2.0-only

函数原型:int pcpu_freelist_init(struct pcpu_freelist *s)

返回类型:int

参数:

类型参数名称
struct pcpu_freelist *s
10  freelist等于alloc_percpu(structpcpu_freelist_head)
11  如果非freelist则返回:负ENOMEM
14  遍历可用CPU(cpu)
15  head等于per_cpu_ptr(freelist, cpu)
17  raw_spin_lock_init( & lock)
18  first = NULL
20  返回:0
调用者
名称描述
prealloc_elems_and_freelist
prealloc_init