Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-28 16:54:36
Last Modify:2020-03-17 23:13:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bvec_free

Proto:void bvec_free(mempool_t *pool, struct bio_vec *bv, unsigned int idx)

Type:void

Parameter:

TypeParameterName
mempool_t *pool
struct bio_vec *bv
unsigned intidx
154  If Not idx Then Return
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  If idx == BVEC_POOL_MAX Then
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  Else
163  bvs = bvec_slabs + idx
165  kmem_cache_free(slab, bv)
Caller
NameDescribe
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().