函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Users of this function have their own bio allocation. Subsequently,* they must remember to pair any call to bio_init() with bio_uninit()* when IO has completed, or when the bio is released.

函数原型:void bio_init(struct bio *bio, struct bio_vec *table, unsigned short max_vecs)

返回类型:void

参数:

类型参数名称
struct bio *bio
struct bio_vec *table
unsigned shortmax_vecs
273  memset(bio, 0, bio的长度)
274  atomic_set( & __bi_remaining, 1)
275  atomic_set( & pin count , 1)
277  the actual vec list 等于table
278  max bvl_vecs we can hold 等于max_vecs
调用者
名称描述
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
iomap_read_page_sync