Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Copy attributes of the original request to the clone request.* The actual data parts (e.g. ->cmd, ->sense) are not copied.

Proto:static void __blk_rq_prep_clone(struct request *dst, struct request *src)

Type:void

Parameter:

TypeParameterName
struct request *dst
struct request *src
1592  sector cursor = lk_rq_pos() : the current sector* blk_rq_bytes() : bytes left in the entire request* blk_rq_cur_bytes() : bytes left in the current segment* blk_rq_err_bytes() : bytes left till the next error boundary* blk_rq_sectors() : sectors left in the entire
1593  total data len = blk_rq_bytes(src)
1594  If rq_flags & Look at ->special_vec for the actual data payload instead of thebio chain. Then
1595  rq_flags |= Look at ->special_vec for the actual data payload instead of thebio chain.
1596  special_vec = special_vec
1598  * Number of scatter-gather DMA addr+len pairs after * physical address coalescing is performed. = * Number of scatter-gather DMA addr+len pairs after * physical address coalescing is performed.
1599  ioprio = ioprio
1600  length of alignment and padding = length of alignment and padding
Caller
NameDescribe
blk_rq_prep_clonelk_rq_prep_clone - Helper function to setup clone request*@rq: the request to be setup*@rq_src: original request to be cloned*@bs: bio_set that bios for clone are allocated from*@gfp_mask: memory allocation mask for bio