函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:REQ_BLOCK_PC请求

函数原型:int blk_rq_map_user(struct request_queue *q, struct request *rq, struct rq_map_data *map_data, void __user *ubuf, unsigned long len, gfp_t gfp_mask)

返回类型:int

参数:

类型参数名称
struct request_queue *q
struct request *rq
struct rq_map_data *map_data
void __user *ubuf
unsigned longlen
gfp_tgfp_mask
167  ret等于import_single_range(rq_data_dir(rq), ubuf, len, & iov, & i)
169  如果此条件成立可能性小(为编译器优化)(ret < 0)则返回:ret
172  返回:lk_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:
调用者
名称描述
sg_io
bsg_sg_io
bsg_transport_fill_hdr