函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu.c Create Date:2022-07-27 15:51:49
Last Modify:2022-05-23 13:52:24 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__alloc_percpu_gfp - allocate dynamic percpu area*@size: size of area to allocate in bytes*@align: alignment of area (max PAGE_SIZE)*@gfp: allocation flags* Allocate zero-filled percpu area of @size bytes aligned at @align

函数原型:void __percpu *__alloc_percpu_gfp(size_t size, size_t align, gfp_t gfp)

返回类型:void

参数:

类型参数名称
size_tsize
size_talign
gfp_tgfp
1783  返回:pcpu_alloc - the percpu allocator*@size: size of area to allocate in bytes*@align: alignment of area (max PAGE_SIZE)*@reserved: allocate from the reserved chunk if available*@gfp: allocation flags* Allocate percpu area of @size bytes aligned at @align
调用者
名称描述
alloc_extra_elems
alloc_htab_elem
bpf_array_alloc_percpu
bpf_cgroup_storage_alloc
__dev_map_alloc_node
__cpu_map_entry_alloc
percpu_ref_initpercpu_ref_init - initialize a percpu refcount*@ref: percpu_ref to initialize*@release: function which will be called when refcount hits 0*@flags: PERCPU_REF_INIT_* flags*@gfp: allocation mask to use* Initializes @ref
prealloc_init
iolatency_pd_alloc