Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:void bio_init(struct bio *bio, struct bio_vec *table, unsigned short max_vecs)

Type:void

Parameter:

TypeParameterName
struct bio *bio
struct bio_vec *table
unsigned shortmax_vecs
273  memset(bio, 0, size of 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
Caller
NameDescribe
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