函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-map.c Create Date:2022-07-27 18:40:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:卸载一个用户数据的请求

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

返回类型:int

参数:

类型参数名称
struct bio *bio
188  ret等于0
190 bio循环
191  mapped_bio等于bio
192  如果此条件成立可能性小(为编译器优化)(bio_flagged(bio, BIO_BOUNCED))则mapped_bio等于bi_private
195  ret2等于__blk_rq_unmap_user(mapped_bio)
196  如果ret2且非retret等于ret2
199  mapped_bio等于bio
200  bio等于 request queue link
201  _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.
204  返回:ret
调用者
名称描述
blk_rq_map_user_iovlk_rq_map_user_iov - map user data to a request, for passthrough requests*@q: request queue where request should be inserted*@rq: request to map data to*@map_data: pointer to the rq_map_data holding pages (if necessary)*@iter: iovec iterator*@gfp_mask:
blk_complete_sghdr_rq
bsg_sg_io
bsg_transport_free_rq