Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:int blk_rq_count_integrity_sg(struct request_queue *q, struct bio *bio)

Type:int

Parameter:

TypeParameterName
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  If prev Then
38  If Not biovec_phys_mergeable(q, & ivprv, & iv) Then Go to new_segment
43  seg_size += bv_len
44  Else
45  new_segment :
46  segments++
47  seg_size = bv_len
50  prev = 1
51  ivprv = iv
54  Return segments
Caller
NameDescribe
blk_integrity_merge_bio