函数逻辑报告 |
Source Code:arch\x86\kernel\amd_gart_64.c |
Create Date:2022-07-27 09:51:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:allocate and map a coherent mapping
函数原型:static void *gart_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_addr, gfp_t flag, unsigned long attrs)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct device * | dev | |
size_t | size | |
dma_addr_t * | dma_addr | |
gfp_t | flag | |
unsigned long | attrs |
473 | 如果非vaddr或非force_iommu或 Like dma_mask, but for alloc_coherent mappings as not all hardware supports 64 bit addresses for consistent allocations such descriptors. 小于等于DMA_BIT_MASK(24)则返回:vaddr |
477 | dma_addr等于Map a single continuous physical area into the IOMMU.* Caller needs to check if the iommu is needed and flush. |
480 | 如果此条件成立可能性小(为编译器优化)( * dma_addr == DMA_MAPPING_ERROR)则转到:out_free |
482 | 返回:vaddr |
483 | out_free : |
485 | 返回:NULL |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |