Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\zbud.c Create Date:2022-07-28 16:25:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:zbud_create_pool() - create a new zbud pool*@gfp: gfp flags when allocating the zbud pool structure*@ops: user-defined operations for the zbud pool* Return: pointer to the new zbud pool or NULL if the metadata allocation* failed.

Proto:struct zbud_pool *zbud_create_pool(gfp_t gfp, const struct zbud_ops *ops)

Type:struct zbud_pool

Parameter:

TypeParameterName
gfp_tgfp
const struct zbud_ops *ops
311  pool = 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).
312  If Not pool Then Return NULL
314  Process spin lock initialization( & lock)
315  for_each_unbuddied_list(i, 0)
316  Initialization list head
317  Initialization list head
318  Initialization list head
319  pages_nr = 0
320  ops = ops
321  Return pool
Caller
NameDescribe
zbud_zpool_create