函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_dma_ops

函数原型:static inline const struct dma_map_ops *get_dma_ops(struct device *dev)

返回类型:struct dma_map_ops

参数:

类型参数名称
struct device *dev
263  如果dma_ops则返回:dma_ops
265  返回:get_arch_dma_ops( type of bus device is on )
调用者
名称描述
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_get_merge_boundary
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