Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\mapping.c Create Date:2022-07-28 10:32:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dma_free_attrs

Proto:void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs)

Type:void

Parameter:

TypeParameterName
struct device *dev
size_tsize
void *cpu_addr
dma_addr_tdma_handle
unsigned longattrs
293  ops = get_dma_ops(dev)
295  If dma_release_from_dev_coherent(dev, get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory, cpu_addr) Then Return
304  WARN_ON(Some architectures don't define arch_irqs_disabled(), so even if either* definition would be fine we need to use different ones for the time being* to avoid build issues.())
306  If Not cpu_addr Then Return
309  debug_dma_free_coherent(dev, size, cpu_addr, dma_handle)
310  If dma_is_direct(ops) Then dma_direct_free(dev, size, cpu_addr, dma_handle, attrs)
312  Else if free Then free(dev, size, cpu_addr, dma_handle, attrs)
Caller
NameDescribe
dmam_release
dma_free_coherent
dma_free_wc