函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\coherent.c Create Date:2022-07-27 11:33:38
Last Modify:2020-03-17 14:54:14 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:dma_declare_coherent_memory

函数原型:int dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, dma_addr_t device_addr, size_t size)

返回类型:int

参数:

类型参数名称
struct device *dev
phys_addr_tphys_addr
dma_addr_tdevice_addr
size_tsize
116  ret等于dma_init_coherent_memory(phys_addr, device_addr, size, & mem)
117  如果ret则返回:ret
120  ret等于dma_assign_coherent_memory(dev, mem)
121  如果retdma_release_coherent_memory(mem)
123  返回:ret