函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:dma_alloc_from_dev_coherent() - allocate memory from device coherent pool*@dev: device from which we allocate memory*@size: size of requested memory area*@dma_handle: This will be filled with the correct dma handle*@ret: This pointer will be filled with

函数原型:int dma_alloc_from_dev_coherent(struct device *dev, ssize_t size, dma_addr_t *dma_handle, void **ret)

返回类型:int

参数:

类型参数名称
struct device *dev
ssize_tsize
dma_addr_t *dma_handle
void **ret
174  mem等于dev_get_coherent_memory(dev)
176  如果非mem则返回:0
179  ret等于__dma_alloc_from_coherent(dev, mem, size, dma_handle)
180  返回:1
调用者
名称描述
dma_alloc_attrs