函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_free_attrs

函数原型:void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs)

返回类型:void

参数:

类型参数名称
struct device *dev
size_tsize
void *cpu_addr
dma_addr_tdma_handle
unsigned longattrs
293  ops等于get_dma_ops(dev)
295  如果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)则返回
304  WARN_ON(已禁止中断())
306  如果非cpu_addr则返回
309  debug_dma_free_coherent(dev, size, cpu_addr, dma_handle)
310  如果dma_is_direct(ops)则dma_direct_free(dev, size, cpu_addr, dma_handle, attrs)
312  否则如果freefree(dev, size, cpu_addr, dma_handle, attrs)
调用者
名称描述
dmam_release
dma_free_coherent
dma_free_wc