函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\dma-mapping.h Create Date:2022-07-27 06:51:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dma_is_direct

函数原型:static inline bool dma_is_direct(const struct dma_map_ops *ops)

返回类型:bool

参数:

类型参数名称
const struct dma_map_ops *ops
193  返回:此条件成立可能性大(为编译器优化)(!ops)
调用者
名称描述
dma_get_sgtable_attrsThe whole dma_get_sgtable() idea is fundamentally unsafe - it seems* that the intention is to allow exporting memory allocated via the* coherent DMA APIs through the dma_buf API, which only accepts a* scattertable. This presents a couple of problems:* 1
dma_can_mmapdma_can_mmap - check if a given device supports dma_mmap_**@dev: device to check* Returns %true if @dev supports dma_mmap_coherent() and dma_mmap_attrs() to* map DMA allocations to userspace.
dma_mmap_attrsdma_mmap_attrs - map a coherent DMA allocation into user space*@dev: valid struct device pointer, or NULL for ISA and EISA-like devices*@vma: vm_area_struct describing requested user mapping*@cpu_addr: kernel CPU-view address returned from
dma_get_required_mask
dma_alloc_attrs
dma_free_attrs
dma_supported
dma_cache_sync
dma_max_mapping_size
dma_map_page_attrs
dma_unmap_page_attrs
dma_map_sg_attrsdma_maps_sg_attrs returns 0 on error and > 0 on success.* It should never return a value < 0.
dma_unmap_sg_attrs
dma_map_resource
dma_unmap_resource
dma_sync_single_for_cpu
dma_sync_single_for_device
dma_sync_sg_for_cpu
dma_sync_sg_for_device