Function report | 
Source Code:block\bio.c | 
Create Date:2022-07-28 16:54:39 | 
| Last Modify:2020-03-17 23:13:58 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:bvec_alloc
Proto:struct bio_vec *bvec_alloc(gfp_t gfp_mask, int nr, unsigned long *idx, mempool_t *pool)
Type:struct bio_vec
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| gfp_t | gfp_mask | |
| int | nr | |
| unsigned long * | idx | |
| mempool_t * | pool | 
| 178 | Case nr == 1 | 
| 179 | idx = 0 | 
| 180 | Break | 
| 181 | Case nr == 2...4 | 
| 182 | idx = 1 | 
| 183 | Break | 
| 184 | Case nr == 5...16 | 
| 185 | idx = 2 | 
| 186 | Break | 
| 187 | Case nr == 17...64 | 
| 188 | idx = 3 | 
| 189 | Break | 
| 190 | Case nr == 65...128 | 
| 191 | idx = 4 | 
| 192 | Break | 
| 193 | Case nr == 129...BIO_MAX_PAGES | 
| 194 | idx = 5 | 
| 195 | Break | 
| 196 | Default | 
| 197 | Return NULL | 
| 204 | If idx == BVEC_POOL_MAX Then | 
| 205 | fallback : | 
| 207 | Else | 
| 208 | bvs = bvec_slabs + idx | 
| 222 | bvl = kmem_cache_alloc(slab, __gfp_mask) | 
| 223 | If Value for the false possibility is greater at compile time(!bvl && (gfp_mask & Caller can reclaim )) Then | 
| 224 | idx = BVEC_POOL_MAX | 
| 225 | Go to fallback | 
| 229 | idx++ | 
| 230 | Return bvl | 
| Name | Describe | 
|---|---|
| bio_alloc_bioset | _alloc_bioset - allocate a bio for I/O*@gfp_mask: the GFP_* mask given to the slab allocator*@nr_iovecs: number of iovecs to pre-allocate*@bs: the bio_set to allocate from | 
| bio_integrity_alloc | _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 | 
| 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  |