Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mempool_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.

Proto:void mempool_free(void *element, mempool_t *pool)

Type:void

Parameter:

TypeParameterName
void *element
mempool_t *pool
456  If Value for the false possibility is greater at compile time(element == NULL) Then Return
473  smp_rmb()
492  If Value for the false possibility is greater at compile time( Current nr of elements at *elements < nr of elements at *elements ) Then
493  spin_lock_irqsave( & lock, flags)
497  wake_up( & wait)
498  Return
500  spin_unlock_irqrestore( & lock, flags)
502  free(element, pool_data)
Caller
NameDescribe
btree_shrink
btree_insert_level
merge
rebalance
__btree_for_each
sg_pool_free
bio_free
bio_alloc_bioset_alloc_bioset - allocate a bio for I/O*@gfp_mask: the GFP_* mask given to the slab allocator*@nr_iovecs: number of iovecs to pre-allocate*@bs: the bio_set to allocate from
bounce_end_io
bio_integrity_alloc_integrity_alloc - Allocate integrity payload and attach it to bio*@bio: bio to attach integrity metadata to*@gfp_mask: Memory allocation mask*@nr_vecs: Number of integrity metadata scatter-gather elements* Description: This function prepares a bio for
bio_integrity_free_integrity_free - Free bio integrity payload*@bio: bio containing bip to be freed* Description: Used to free the integrity portion of a bio. Usually* called from bio_free().
btree_destroy