函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bio_free

函数原型:static void bio_free(struct bio *bio)

返回类型:void

参数:

类型参数名称
struct bio *bio
244  bs等于bi_pool
247  bio_uninit(bio)
249  如果bs
250  bvec_free( & bvec_pool, the actual vec list , BVEC_POOL_IDX(bio))
255  p等于bio
256  p减等于front_pad
258  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.
259  否则
261  释放内存
调用者
名称描述
bio_put_put - release a reference to a bio*@bio: bio to release reference to* Description:* Put a reference to a &struct bio, either one you have gotten with* bio_alloc, bio_get or bio_clone_*. The last put of a bio will free it.