Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:_integrity_process - Process integrity metadata for a bio*@bio: bio to generate/verify integrity metadata for*@proc_iter: iterator to process*@proc_fn: Pointer to the relevant processing function

Proto:static blk_status_t bio_integrity_process(struct bio *bio, struct bvec_iter *proc_iter, integrity_processing_fn *proc_fn)

Type:blk_status_t

Parameter:

TypeParameterName
struct bio *bio
struct bvec_iter *proc_iter
integrity_processing_fn *proc_fn
156  bi = blk_get_integrity(bi_disk)
160  bip = bio_integrity(bio)
161  ret = BLK_STS_OK
162  prot_buf = page_address(bv_page) + bv_offset
165  disk_name = disk_name
166  interval = 1 << interval_exp
167  seed = device address in 512 byte sectors
168  prot_buf = prot_buf
171  kaddr = kmap_atomic(bv_page)
173  data_buf = kaddr + bv_offset
174  data_size = bv_len
176  ret = proc_fn( & iter)
177  If ret Then
178  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr)
179  Return ret
182  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(kaddr)
184  Return ret
Caller
NameDescribe
bio_integrity_prep_integrity_prep - Prepare bio for integrity I/O*@bio: bio to prepare* Description: Checks if the bio already has an integrity payload attached.* If it does, the payload has been generated by another kernel subsystem,* and we just pass it through
bio_integrity_verify_fn_integrity_verify_fn - Integrity I/O completion worker*@work: Work struct stored in bio to be verified* Description: This workqueue function is called to complete a READ* request. The function verifies the transferred integrity metadata