函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-27 18:29:48
Last Modify:2020-03-17 23:13:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bvec_free

函数原型:void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned int idx)

返回类型:void

参数:

类型参数名称
mempool_t *pool
struct bio_vec *bv
unsigned intidx
154  如果非idx则返回
156  idx自减
158  BIO_BUG_ON(idx >= We support 6 different bvec pools, the last one is magic in that it* is backed by a mempool.)
160  如果idx恒等于BVEC_POOL_MAX
161  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.
162  否则
163  bvs等于bvec_slabsidx
165  kmem_cache_free(slab, bv)
调用者
名称描述
bio_free
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().