函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_rq_count_integrity_sg - Count number of integrity scatterlist elements*@q: request queue*@bio: bio with integrity metadata attached* Description: Returns the number of elements required in a* scatterlist corresponding to the integrity metadata in a bio.

函数原型:int blk_rq_count_integrity_sg(struct request_queue *q, struct bio *bio)

返回类型:int

参数:

类型参数名称
struct request_queue *q
struct bio *bio
29  struct bio_vec iv, ivprv = {NULL}
30  segments等于0
31  seg_size等于0
33  prev等于0
35  bio_for_each_integrity_vec(iv, bio, iter)
37  如果prev
38  如果非biovec_phys_mergeable(q, & ivprv, & iv)则转到:new_segment
40  如果seg_sizebv_len大于queue_max_segment_size(q)则转到:new_segment
43  seg_size加等于bv_len
44  否则
45  new_segment :
46  segments自加
47  seg_size等于bv_len
50  prev等于1
51  ivprv等于iv
54  返回:segments
调用者
名称描述
blk_integrity_merge_bio