Function report |
Source Code:mm\dmapool.c |
Create Date:2022-07-28 15:24:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dma_pool_create - Creates a pool of consistent memory blocks, for dma
Proto:struct dma_pool *dma_pool_create(const char *name, struct device *dev, size_t size, size_t align, size_t boundary)
Type:struct dma_pool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | name | |
| struct device * | dev | |
| size_t | size | |
| size_t | align | |
| size_t | boundary |
| 135 | bool empty = false |
| 142 | If size == 0 Then Return NULL |
| 150 | allocation = max_t - return maximum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, size, PAGE_SIZE) |
| 152 | If Not boundary Then boundary = allocation |
| 157 | retval = kmalloc_node( size of retval , GFP_KERNEL, dev_to_node(dev)) |
| 166 | Process spin lock initialization( & lock) |
| 169 | allocation = allocation |
| 181 | mutex_lock( & pools_reg_lock) |
| 182 | mutex_lock( & pools_lock) |
| 183 | If list_empty - tests whether a list is empty*@head: the list to test. Then empty = true |
| 187 | If empty Then |
| 190 | err = device_create_file(dev, & dev_attr_pools) |
| 191 | If err Then |
| 192 | mutex_lock( & pools_lock) |
| 197 | Return NULL |
| 201 | Return retval |
| Name | Describe |
|---|---|
| dmam_pool_create | dmam_pool_create - Managed dma_pool_create()*@name: name of pool, for diagnostics*@dev: device that will be doing the DMA*@size: size of the blocks in this pool |
| 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 |