Function report | 
Source Code:block\bio-integrity.c | 
Create Date:2022-07-28 18:02:11 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:_integrity_alloc - Allocate integrity payload and attach it to bio*@bio: bio to attach integrity metadata to*@gfp_mask: Memory allocation mask*@nr_vecs: Number of integrity metadata scatter-gather elements* Description: This function prepares a bio for
Proto:struct bio_integrity_payload *bio_integrity_alloc(struct bio *bio, gfp_t gfp_mask, unsigned int nr_vecs)
Type:struct bio_integrity_payload
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct bio * | bio | |
| gfp_t | gfp_mask | |
| unsigned int | nr_vecs | 
| 45 | If Not bs || Not mempool_initialized( & bio_integrity_pool) Then | 
| 46 | bip = Allocation memory | 
| 47 | inline_vecs = nr_vecs | 
| 48 | Else | 
| 53 | If Value for the false possibility is greater at compile time(!bip) Then Return ERR_PTR( - ENOMEM) | 
| 58 | If nr_vecs > inline_vecs Then | 
| 59 | idx = 0 | 
| 61 | bip_vec = bvec_alloc(gfp_mask, nr_vecs, & idx, & bvec_integrity_pool) | 
| 67 | Else | 
| 72 | parent bio = bio | 
| 73 | data integrity = bip | 
| 76 | Return bip | 
| 77 | err : | 
| 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_clone | _integrity_clone - Callback for cloning bios with integrity metadata*@bio: New bio*@bio_src: Original bio*@gfp_mask: Memory allocation mask* Description: Called to allocate a bip when cloning a bio | 
| 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  |