函数逻辑报告 |
Source Code:kernel\dma\direct.c |
Create Date:2022-07-27 11:32:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__dma_direct_alloc_pages
函数原型:struct page *__dma_direct_alloc_pages(struct device *dev, size_t size, gfp_t gfp, unsigned long attrs)
返回类型:struct page
参数:
类型 | 参数 | 名称 |
---|---|---|
struct device * | dev | |
size_t | size | |
gfp_t | gfp | |
unsigned long | attrs |
94 | node等于dev_to_node(dev) |
102 | gfp与等于__GFP_ZERO的反 |
103 | gfp或等于__dma_direct_optimal_gfp_mask(dev, Like dma_mask, but for alloc_coherent mappings as not all hardware supports 64 bit addresses for consistent allocations such descriptors. , & phys_limit) |
107 | dma_free_contiguous(dev, page, alloc_size) |
108 | page = NULL |
110 | again : |
111 | 如果非page则page等于Allocate pages, preferring the node given as nid. When nid == NUMA_NO_NODE,* prefer the current CPU's closest node. Otherwise node must be valid and* online. |
130 | 返回:page |
名称 | 描述 |
---|---|
dma_direct_alloc_pages |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |