函数逻辑报告 |
Source Code:kernel\dma\direct.c |
Create Date:2022-07-27 11:33:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:dma_direct_alloc_pages
函数原型:void *dma_direct_alloc_pages(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct device * | dev | |
size_t | size | |
dma_addr_t * | dma_handle | |
gfp_t | gfp | |
unsigned long | attrs |
149 | 如果非page则返回:NULL |
172 | 如果非ret则 |
173 | dma_free_contiguous(dev, page, size) |
174 | 返回:ret |
178 | 转到:done |
181 | 如果PageHighMem(page)则 |
189 | dma_free_contiguous(dev, page, size) |
190 | 返回:NULL |
193 | ret等于page_address(page) |
201 | arch_dma_prep_coherent(page, size) |
202 | ret等于uncached_kernel_address(ret) |
204 | done : |
205 | 如果force_dma_unencrypted(dev)则dma_handle等于__phys_to_dma(dev, Change "struct page" to physical address.(page)) |
209 | 返回:ret |
名称 | 描述 |
---|---|
dma_direct_alloc | |
gart_alloc_coherent | allocate and map a coherent mapping |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |