函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_integrity_merge_bio

函数原型:bool blk_integrity_merge_bio(struct request_queue *q, struct request *req, struct bio *bio)

返回类型:bool

参数:

类型参数名称
struct request_queue *q
struct request *req
struct bio *bio
192  next等于 request queue link
194  如果(blk_integrity_rq(req) == 0 && bio_integrity(bio) == NULL)则返回:true
197  如果(blk_integrity_rq(req) == 0 || bio_integrity(bio) == NULL)则返回:false
200  如果control flags 不等于control flags 则返回:false
203  request queue link = NULL
204  nr_integrity_segs等于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.
205  request queue link 等于next
207  如果nr_integrity_segmentsnr_integrity_segs大于max_integrity_segments则返回:false
211  nr_integrity_segments加等于nr_integrity_segs
213  返回:true
调用者
名称描述
blk_rq_merge_ok