Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mempool_init - initialize a memory pool*@pool: pointer to the memory pool that should be initialized*@min_nr: the minimum number of elements guaranteed to be* allocated for this pool.*@alloc_fn: user-defined element-allocation function.

Proto:int mempool_init(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data)

Type:int

Parameter:

TypeParameterName
mempool_t *pool
intmin_nr
mempool_alloc_t *alloc_fn
mempool_free_t *free_fn
void *pool_data
231  Return mempool_init_node(pool, min_nr, alloc_fn, free_fn, pool_data, GFP_KERNEL, NUMA_NO_NODE)