Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-map.c Create Date:2022-07-28 17:04:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__blk_rq_unmap_user

Proto:static int __blk_rq_unmap_user(struct bio *bio)

Type:int

Parameter:

TypeParameterName
struct bio *bio
52  ret = 0
54  If bio Then
55  If bio_flagged(bio, BIO_USER_MAPPED) Then _unmap_user - unmap a bio*@bio: the bio being unmapped* Unmap a bio previously mapped by bio_map_user_iov(). Must be called from* process context.* bio_unmap_user() may sleep.
57  Else ret = _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.
61  Return ret
Caller
NameDescribe
__blk_rq_map_user_iov
blk_rq_unmap_userlk_rq_unmap_user - unmap a request with user data*@bio: start of bio list* Description:* Unmap a rq previously mapped by blk_rq_map_user(). The caller must* supply the original rq->bio from the blk_rq_map_user() return, since