函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:void mempool_free(void *element, mempool_t *pool)

返回类型:void

参数:

类型参数名称
void *element
mempool_t *pool
456  如果此条件成立可能性小(为编译器优化)(element == NULL)则返回
473  smp_rmb()
492  如果此条件成立可能性小(为编译器优化)( Current nr of elements at *elements < nr of elements at *elements )则
493  spin_lock_irqsave( & lock, flags)
497  wake_up( & wait)
498  返回
500  spin_unlock_irqrestore( & lock, flags)
502  free(element, pool_data)
调用者
名称描述
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销毁内存池
bvec_free
fscrypt_free_bounce_pagescrypt_free_bounce_page() - free a ciphertext bounce page* Free a bounce page that was allocated by fscrypt_encrypt_pagecache_blocks(),* or by fscrypt_alloc_bounce_page() directly.