函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_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.

函数原型:int bio_uncopy_user(struct bio *bio)

返回类型:int

参数:

类型参数名称
struct bio *bio
1241  bmd等于bi_private
1242  ret等于0
1244  如果非bio_flagged(bio, BIO_NULL_MAPPED)则
1250  如果非mmret等于负EINTR
1252  否则如果Return the data direction, READ or WRITE.(bio)恒等于generic data direction definitions 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  如果is_our_pagesbio_free_pages(bio)
1257  释放内存
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  返回:ret
调用者
名称描述
__blk_rq_unmap_user