Function report | 
Source Code:mm\mempool.c | 
Create Date:2022-07-28 14:04:46 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:mempool_alloc - allocate an element from a specific memory pool*@pool: pointer to the memory pool which was allocated via* mempool_create().*@gfp_mask: the usual allocation bitmask.* this function only sleeps if the alloc_fn() function sleeps or
Proto:void *mempool_alloc(mempool_t *pool, gfp_t gfp_mask)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| mempool_t * | pool | |
| gfp_t | gfp_mask | 
| 382 | VM_WARN_ON_ONCE(gfp_mask & __GFP_ZERO) | 
| 383 | might_sleep_if(gfp_mask & Caller can reclaim ) | 
| 385 | gfp_mask |= __GFP_NOMEMALLOC | 
| 386 | gfp_mask |= __GFP_NORETRY | 
| 391 | repeat_alloc : | 
| 394 | If Value is more likely to compile time(element != NULL) Then Return element | 
| 397 | spin_lock_irqsave( & lock, flags) | 
| 399 | element = remove_element(pool) | 
| 400 | spin_unlock_irqrestore( & lock, flags) | 
| 402 | smp_wmb() | 
| 408 | Return element | 
| 422 | If Not (gfp_mask & Caller can reclaim ) Then | 
| 423 | spin_unlock_irqrestore( & lock, flags) | 
| 424 | Return NULL | 
| 431 | spin_unlock_irqrestore( & lock, flags) | 
| 440 | Go to repeat_alloc | 
| Name | Describe | 
|---|---|
| sg_pool_alloc | |
| 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 | 
| __blk_queue_bounce | |
| 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 | 
| btree_node_alloc | 
| 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  |