Function report |
Source Code:mm\mempool.c |
Create Date:2022-07-28 14:04:35 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mempool_init_node
Proto:int mempool_init_node(mempool_t *pool, int min_nr, mempool_alloc_t *alloc_fn, mempool_free_t *free_fn, void *pool_data, gfp_t gfp_mask, int node_id)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| mempool_t * | pool | |
| int | min_nr | |
| mempool_alloc_t * | alloc_fn | |
| mempool_free_t * | free_fn | |
| void * | pool_data | |
| gfp_t | gfp_mask | |
| int | node_id |
| 184 | Process spin lock initialization( & lock) |
| 189 | init_waitqueue_head( & wait) |
| 191 | elements = kmalloc_array_node(min_nr, size of * , gfp_mask, node_id) |
| 205 | Return -ENOMEM |
| 207 | add_element(pool, element) |
| 210 | Return 0 |
| Name | Describe |
|---|---|
| mempool_init | mempool_init - initialize a memory pool*@pool: pointer to the memory pool that should be initialized*@min_nr: the minimum number of elements guaranteed to be* allocated for this pool.*@alloc_fn: user-defined element-allocation function. |
| mempool_create_node |
| 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 |