Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bio.h Create Date:2022-07-28 05:45:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get a reference to a bio, so it won't disappear. the intended use is* something like:* bio_get(bio);* submit_bio(rw, bio);* if (bio->bi_flags ...)* do_something* bio_put(bio);* without the bio_get(), it could potentially complete I/O before submit_bio

Proto:static inline void bio_get(struct bio *bio)

Type:void

Parameter:

TypeParameterName
struct bio *bio
218  status, etc and bvec pool number |= 1 << BIO_REFFED
219  smp_mb__before_atomic()
220  atomic_inc( & pin count )
Caller
NameDescribe
swap_readpage
bio_map_user_iov_map_user_iov - map user iovec into bio*@q: the struct request_queue for the bio*@iter: iovec iterator*@gfp_mask: memory allocation flags* Map the user space address into a bio suitable for io to a block* device. Returns an error pointer in case of error.
__blk_rq_map_user_iov
__blkdev_direct_IO
iomap_chain_bioAllocate a new bio, and chain the old bio to the new one.* Note that we have to do perform the chaining in this unintuitive order* so that the bi_private linkage is set up in the right direction for the* traversal in iomap_finish_ioend().