Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_uncopy_user - finish previously mapped bio*@bio: bio being terminated* Free pages allocated from bio_copy_user_iov() and write back data* to user space in case of a read.

Proto:int bio_uncopy_user(struct bio *bio)

Type:int

Parameter:

TypeParameterName
struct bio *bio
1241  bmd = bi_private
1242  ret = 0
1244  If Not bio_flagged(bio, BIO_NULL_MAPPED) Then
1250  If Not mm Then ret = -EINTR
1252  Else if Return the data direction, READ or WRITE.(bio) == generic data direction definitions Then ret = _copy_to_iter - copy all pages from bio to iov_iter*@bio: The &struct bio which describes the I/O as source*@iter: iov_iter as destination* Copy all pages from bio to iov_iter.* Returns 0 on success, or error on failure.
1254  If is_our_pages Then bio_free_pages(bio)
1257  kfree(bmd)
1258  _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.
1259  Return ret
Caller
NameDescribe
__blk_rq_unmap_user