函数逻辑报告 | 
Source Code:kernel\dma\coherent.c | 
Create Date:2022-07-27 11:33:40 | 
| Last Modify:2020-03-17 14:54:14 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:__dma_alloc_from_coherent
函数原型:static void *__dma_alloc_from_coherent(struct device *dev, struct dma_coherent_mem *mem, ssize_t size, dma_addr_t *dma_handle)
返回类型:void
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct device * | dev | |
| struct dma_coherent_mem * | mem | |
| ssize_t | size | |
| dma_addr_t * | dma_handle | 
| 130 | order等于get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory | 
| 135 | spin_lock_irqsave( & spinlock, flags) | 
| 137 | 如果此条件成立可能性小(为编译器优化)(size > (size << PAGE_SHIFT determines the page size ))则转到:err | 
| 141 | 如果此条件成立可能性小(为编译器优化)(pageno < 0)则转到:err | 
| 149 | spin_unlock_irqrestore( & spinlock, flags) | 
| 151 | 返回:ret | 
| 152 | err : | 
| 153 | spin_unlock_irqrestore( & spinlock, flags) | 
| 154 | 返回:NULL | 
| 名称 | 描述 | 
|---|---|
| dma_alloc_from_dev_coherent | dma_alloc_from_dev_coherent() - allocate memory from device coherent pool*@dev: device from which we allocate memory*@size: size of requested memory area*@dma_handle: This will be filled with the correct dma handle*@ret: This pointer will be filled with | 
| dma_alloc_from_global_coherent | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |