Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\dma\coherent.c Create Date:2022-07-28 10:33:51
Last Modify:2020-03-17 14:54:14 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:int dma_alloc_from_dev_coherent(struct device *dev, ssize_t size, dma_addr_t *dma_handle, void **ret)

Type:int

Parameter:

TypeParameterName
struct device *dev
ssize_tsize
dma_addr_t *dma_handle
void **ret
174  mem = dev_get_coherent_memory(dev)
176  If Not mem Then Return 0
179  ret = __dma_alloc_from_coherent(dev, mem, size, dma_handle)
180  Return 1
Caller
NameDescribe
dma_alloc_attrs