函数逻辑报告 |
Source Code:kernel\dma\mapping.c |
Create Date:2022-07-27 11:32:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:dmam_alloc_attrs - Managed dma_alloc_attrs()*@dev: Device to allocate non_coherent memory for*@size: Size of allocation*@dma_handle: Out argument for allocated DMA handle*@gfp: Allocation flags*@attrs: Flags in the DMA_ATTR_* namespace.
函数原型:void *dmam_alloc_attrs(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 |
87 | dr等于devres_alloc(dmam_release, dr的长度, gfp) |
88 | 如果非dr则返回:NULL |
91 | vaddr等于dma_alloc_attrs(dev, size, dma_handle, gfp, attrs) |
92 | 如果非vaddr则 |
93 | devres_free(dr) |
94 | 返回:NULL |
98 | dma_handle等于dma_handle |
102 | devres_add(dev, dr) |
104 | 返回:vaddr |
名称 | 描述 |
---|---|
dmam_alloc_coherent |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |