函数逻辑报告 |
Source Code:mm\dmapool.c |
Create Date:2022-07-27 16:54:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:dma_pool_create - Creates a pool of consistent memory blocks, for dma
函数原型:struct dma_pool *dma_pool_create(const char *name, struct device *dev, size_t size, size_t align, size_t boundary)
返回类型:struct dma_pool
参数:
类型 | 参数 | 名称 |
---|---|---|
const char * | name | |
struct device * | dev | |
size_t | size | |
size_t | align | |
size_t | boundary |
135 | bool empty = false |
142 | 如果size恒等于0则返回: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 | 如果非boundary则boundary等于allocation |
157 | retval等于kmalloc_node(retval的长度, GFP_KERNEL, dev_to_node(dev)) |
161 | 长字符串复制 |
165 | 初始化链表头 |
166 | spin_lock_init( & lock) |
169 | allocation等于allocation |
171 | 初始化链表头 |
181 | mutex_lock( & pools_reg_lock) |
182 | mutex_lock( & pools_lock) |
185 | 添加链表项 |
187 | 如果empty则 |
190 | err等于device_create_file(dev, & dev_attr_pools) |
191 | 如果err则 |
201 | 返回:retval |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |