Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bounce_clone_bio

Proto:static struct bio *bounce_clone_bio(struct bio *bio_src, gfp_t gfp_mask, struct bio_set *bs)

Type:struct bio

Parameter:

TypeParameterName
struct bio *bio_src
gfp_tgfp_mask
struct bio_set *bs
246  bio = _alloc_bioset - allocate a bio for I/O*@gfp_mask: the GFP_* mask given to the slab allocator*@nr_iovecs: number of iovecs to pre-allocate*@bs: the bio_set to allocate from
247  If Not bio Then Return NULL
249  bi_disk = bi_disk
250  bottom bits req flags, * top bits REQ_OP. Use * accessors. = bottom bits req flags, * top bits REQ_OP. Use * accessors.
251  bi_ioprio = bi_ioprio
252  bi_write_hint = bi_write_hint
253  device address in 512 byte sectors = device address in 512 byte sectors
254  residual I/O count = residual I/O count
257  Case bio_op(bio) == REQ_OP_DISCARD
258  Case bio_op(bio) == REQ_OP_SECURE_ERASE
259  Case bio_op(bio) == REQ_OP_WRITE_ZEROES
260  Break
261  Case bio_op(bio) == REQ_OP_WRITE_SAME
262  the actual vec list [ how many bio_vec's ++] = the actual vec list [0]
263  Break
264  Default
265  bio_for_each_segment(bv, bio_src, iter)
266  the actual vec list [ how many bio_vec's ++] = bv
267  Break
270  If bio_integrity(bio_src) Then
273  ret = bio_integrity_clone(bio, bio_src, gfp_mask)
274  If ret < 0 Then
276  Return NULL
280  _clone_blkg_association - clone blkg association from src to dst bio*@dst: destination bio*@src: source bio
281  blkcg_bio_issue_init(bio)
283  Return bio
Caller
NameDescribe
__blk_queue_bounce