函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mempool.c Create Date:2022-07-27 15:27:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mempool_create_node

函数原型:mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data, gfp_t gfp_mask, int node_id)

返回类型:mempool_t

参数:

类型参数名称
intmin_nr
mempool_alloc_t *alloc_fn
mempool_free_t *free_fn
void *pool_data
gfp_tgfp_mask
intnode_id
267  pool等于根据内存节点分配内存
268  如果非pool则返回:NULL
271  如果mempool_init_node(pool, min_nr, alloc_fn, free_fn, pool_data, gfp_mask, node_id)则
273  释放内存
274  返回:NULL
277  返回:pool
调用者
名称描述
mempool_createmempool_create - create a memory pool*@min_nr: the minimum number of elements guaranteed to be* allocated for this pool.*@alloc_fn: user-defined element-allocation function.*@free_fn: user-defined element-freeing function.