Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dmam_alloc_attrs - Managed dma_alloc_attrs()*@dev: Device to allocate non_coherent memory for*@size: Size of allocation*@dma_handle: Out argument for allocated DMA handle*@gfp: Allocation flags*@attrs: Flags in the DMA_ATTR_* namespace.

Proto:void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs)

Type:void

Parameter:

TypeParameterName
struct device *dev
size_tsize
dma_addr_t *dma_handle
gfp_tgfp
unsigned longattrs
87  dr = devres_alloc(dmam_release, size of dr , gfp)
88  If Not dr Then Return NULL
91  vaddr = dma_alloc_attrs(dev, size, dma_handle, gfp, attrs)
92  If Not vaddr Then
93  devres_free(dr)
94  Return NULL
97  vaddr = vaddr
98  dma_handle = dma_handle
99  size = size
100  attrs = attrs
102  devres_add(dev, dr)
104  Return vaddr
Caller
NameDescribe
dmam_alloc_coherent