Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int blk_rq_map_integrity_sg(struct request_queue *q, struct bio *bio, struct scatterlist *sglist)

Type:int

Parameter:

TypeParameterName
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  If prev Then
80  If Not biovec_phys_mergeable(q, & ivprv, & iv) Then Go to new_segment
85  length += bv_len
86  Else
87  new_segment :
88  If Not sg Then sg = sglist
90  Else
96  segments++
99  prev = 1
100  ivprv = iv
103  If sg Then sg_mark_end - Mark the end of the scatterlist*@sg: SG entryScatterlist* Description:* Marks the passed in sg entry as the termination point for the sg* table. A call to sg_next() on this entry will return NULL.
106  Return segments