函数逻辑报告 |
Source Code:kernel\dma\mapping.c |
Create Date:2022-07-27 11:32:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:dma_alloc_attrs
函数原型:void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag, unsigned long attrs)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct device * | dev | |
| size_t | size | |
| dma_addr_t * | dma_handle | |
| gfp_t | flag | |
| unsigned long | attrs |
| 267 | ops等于get_dma_ops(dev) |
| 270 | WARN_ON_ONCE(! Like dma_mask, but for alloc_coherent mappings as not all hardware supports 64 bit addresses for consistent allocations such descriptors. ) |
| 272 | 如果dma_alloc_from_dev_coherent(dev, size, dma_handle, & cpu_addr)则返回:cpu_addr |
| 278 | 如果dma_is_direct(ops)则cpu_addr等于dma_direct_alloc(dev, size, dma_handle, flag, attrs) |
| 282 | 否则返回:NULL |
| 285 | debug_dma_alloc_coherent(dev, size, * dma_handle, cpu_addr) |
| 286 | 返回:cpu_addr |
| 名称 | 描述 |
|---|---|
| dmam_alloc_attrs | 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. |
| dma_alloc_coherent | |
| dma_alloc_wc |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |