函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:add_element

函数原型:static __always_inline void add_element(mempool_t *pool, void *element)

返回类型:void

参数:

类型参数名称
mempool_t *pool
void *element
124  BUG_ON( Current nr of elements at *elements >= nr of elements at *elements )
125  poison_element(pool, element)
126  kasan_poison_element(pool, element)
127  elements[ Current nr of elements at *elements ++]等于element
调用者
名称描述
mempool_init_node
mempool_resizemempool_resize - resize an existing memory pool*@pool: pointer to the memory pool which was allocated via* mempool_create().*@new_min_nr: the new minimum number of elements guaranteed to be* allocated for this pool.* This function shrinks/grows the pool
mempool_freemempool_free - return an element to the pool.*@element: pool element pointer.*@pool: pointer to the memory pool which was allocated via* mempool_create().* this function only sleeps if the free_fn() function sleeps.