Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int blk_rq_append_bio(struct request *rq, struct bio **bio)

Type:int

Parameter:

TypeParameterName
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  If Not bio Then
31  blk_rq_bio_prep(rq, * bio, nr_segs)
32  Else
33  If Not ll_back_merge_fn(rq, * bio, nr_segs) Then
34  If orig_bio != bio Then
38  Return -EINVAL
41  request queue link = bio
42  biotail = bio
43  total data len += residual I/O count
46  Return 0
Caller
NameDescribe
__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: