Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\sg_pool.c Create Date:2022-07-28 07:20:32
Last Modify:2022-05-21 18:25:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sg_pool_alloc

Proto:static struct scatterlist *sg_pool_alloc(unsigned int nents, gfp_t gfp_mask)

Type:struct scatterlist

Parameter:

TypeParameterName
unsigned intnents
gfp_tgfp_mask
66  sgp = sg_pools + sg_pool_index(nents)
67  Return mempool_alloc - allocate an element from a specific memory pool*@pool: pointer to the memory pool which was allocated via* mempool_create().*@gfp_mask: the usual allocation bitmask.* this function only sleeps if the alloc_fn() function sleeps or