函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:biovec_phys_mergeable

函数原型:static inline bool biovec_phys_mergeable(struct request_queue *q, struct bio_vec *vec1, struct bio_vec *vec2)

返回类型:bool

参数:

类型参数名称
struct request_queue *q
struct bio_vec *vec1
struct bio_vec *vec2
78  mask等于queue_segment_boundary(q)
79  addr1等于Change "struct page" to physical address.(bv_page)加bv_offset
80  addr2等于Change "struct page" to physical address.(bv_page)加bv_offset
82  如果addr1bv_len不等于addr2则返回:false
84  如果xen_domain()且非xen_biovec_phys_mergeable(vec1, bv_page)则返回:false
86  如果addr1按位或mask的值不等于addr2bv_len减1按位或mask的值则返回:false
88  返回:true
调用者
名称描述
bio_will_gap
__blk_segment_map_sg_mergely try to merge bvecs into one sg if they are from two bios
blk_rq_count_integrity_sglk_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.
blk_rq_map_integrity_sglk_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