Function report | 
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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| 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 | 
| 166 | interval = 1 << interval_exp | 
| 171 | kaddr = kmap_atomic(bv_page) | 
| 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 | 
| Name | Describe | 
|---|---|
| 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 | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |