函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void __blk_rq_prep_clone(struct request *dst, struct request *src)

返回类型:void

参数:

类型参数名称
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  如果rq_flags按位与Look at ->special_vec for the actual data payload instead of thebio chain.
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
调用者
名称描述
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