函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_rq_map_integrity_sg - Map integrity metadata into a scatterlist*@q: request queue*@bio: bio with integrity metadata attached*@sglist: target scatterlist* Description: Map the integrity vectors in request into a* scatterlist

函数原型:int blk_rq_map_integrity_sg(struct request_queue *q, struct bio *bio, struct scatterlist *sglist)

返回类型:int

参数:

类型参数名称
struct request_queue *q
struct bio *bio
struct scatterlist *sglist
71  struct bio_vec iv, ivprv = {NULL}
72  struct scatterlist * sg = NULL
73  segments等于0
75  prev等于0
77  bio_for_each_integrity_vec(iv, bio, iter)
79  如果prev
80  如果非biovec_phys_mergeable(q, & ivprv, & iv)则转到:new_segment
82  如果lengthbv_len大于queue_max_segment_size(q)则转到:new_segment
85  length加等于bv_len
86  否则
87  new_segment :
88  如果非sgsg等于sglist
90  否则
96  segments自加
99  prev等于1
100  ivprv等于iv
103  如果sg标记散列表结束
106  返回:segments