| Function report | 
| Source Code: block\bio.c | Create Date:2022-07-28 16:54:55 | 
| Last Modify:2020-03-17 23:13:58 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:_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
Proto:struct bio *bio_alloc_bioset(gfp_t gfp_mask, unsigned int nr_iovecs, struct bio_set *bs)
Type:struct bio
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| gfp_t | gfp_mask | |
| unsigned int | nr_iovecs | |
| struct bio_set * | bs | 
| 439 | If Not bs Then | 
| 440 | If nr_iovecs > UIO_MAXIOV Then Return NULL | 
| 443 | p = Allocation memory | 
| 446 | front_pad = 0 | 
| 447 | inline_vecs = nr_iovecs | 
| 448 | Else | 
| 450 | If WARN_ON_ONCE(!mempool_initialized( & bvec_pool) && nr_iovecs > 0) Then Return NULL | 
| 474 | If bio_list && ( Not bio_list_empty( & bio_list[0]) || Not bio_list_empty( & bio_list[1]) ) && rescue_workqueue Then gfp_mask &= ~Caller can reclaim | 
| 482 | punt_bios_to_rescuer(bs) | 
| 491 | If Value for the false possibility is greater at compile time(!p) Then Return NULL | 
| 497 | If nr_iovecs > inline_vecs Then | 
| 498 | idx = 0 | 
| 502 | punt_bios_to_rescuer(bs) | 
| 507 | If Value for the false possibility is greater at compile time(!bvl) Then Go to err_free | 
| 511 | Else if nr_iovecs Then | 
| 517 | the actual vec list = bvl | 
| 518 | Return bio | 
| 520 | err_free : | 
| 522 | Return NULL | 
| Name | Describe | 
|---|---|
| bio_clone_fast | _clone_fast - clone a bio that shares the original bio's biovec*@bio: bio to clone*@gfp_mask: allocation priority*@bs: bio_set to allocate from* Like __bio_clone_fast, only also allocates the returned bio | 
| bounce_clone_bio | |
| iomap_alloc_ioend | |
| bio_alloc | |
| bio_kmalloc | 
| 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 |