Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk.h Create Date:2022-07-28 12:15:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:biovec_phys_mergeable

Proto:static inline bool biovec_phys_mergeable(struct request_queue *q, struct bio_vec *vec1, struct bio_vec *vec2)

Type:bool

Parameter:

TypeParameterName
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  If addr1 + bv_len != addr2 Then Return false
84  If xen_domain() && Not xen_biovec_phys_mergeable(vec1, bv_page) Then Return false
86  If (addr1 | mask) != ( addr2 + bv_len - 1 | mask) Then Return false
88  Return true
Caller
NameDescribe
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