Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu.c Create Date:2022-07-28 14:25:52
Last Modify:2022-05-23 13:52:24 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pcpu_mem_zalloc - allocate memory*@size: bytes to allocate*@gfp: allocation flags* Allocate @size bytes. If @size is smaller than PAGE_SIZE,* kzalloc() is used; otherwise, the equivalent of vzalloc() is used.

Proto:static void *pcpu_mem_zalloc(size_t size, gfp_t gfp)

Type:void

Parameter:

TypeParameterName
size_tsize
gfp_tgfp
505  If WARN_ON_ONCE(!slab_is_available()) Then Return NULL
508  If size <= PAGE_SIZE Then Return kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
510  Else Return __vmalloc(size, gfp | __GFP_ZERO, PAGE_KERNEL)
Caller
NameDescribe
pcpu_alloc_chunk