函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Append a bio to a passthrough request. Only works if the bio can be merged* into the request based on the driver constraints.

函数原型:int blk_rq_append_bio(struct request *rq, struct bio **bio)

返回类型:int

参数:

类型参数名称
struct request *rq
struct bio **bio
20  orig_bio等于bio
23  nr_segs等于0
25  blk_queue_bounce(q, bio)
27  rate over multi-page bvec (bv, * bio, iter)
28  nr_segs自加
30  如果非bio
31  blk_rq_bio_prep(rq, * bio, nr_segs)
32  否则
33  如果非ll_back_merge_fn(rq, * bio, nr_segs)则
34  如果orig_bio不等于bio
38  返回:负EINVAL
41  request queue link 等于bio
42  biotail等于bio
43  total data len 加等于 residual I/O count
46  返回:0
调用者
名称描述
__blk_rq_map_user_iov
blk_rq_map_kernlk_rq_map_kern - map kernel data to a request, for passthrough requests*@q: request queue where request should be inserted*@rq: request to fill*@kbuf: the kernel buffer*@len: length of user data*@gfp_mask: memory allocation flags* Description: