Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\dma-mapping.h Create Date:2022-07-28 05:51:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:get_dma_ops

Proto:static inline const struct dma_map_ops *get_dma_ops(struct device *dev)

Type:struct dma_map_ops

Parameter:

TypeParameterName
struct device *dev
263  If dma_ops Then Return dma_ops
265  Return get_arch_dma_ops( type of bus device is on )
Caller
NameDescribe
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