Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:add_element

Proto:static __always_inline void add_element(mempool_t *pool, void *element)

Type:void

Parameter:

TypeParameterName
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
Caller
NameDescribe
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.