Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
size_t | size | |
dma_addr_t * | dma_handle | |
gfp_t | gfp | |
unsigned long | attrs |
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 |
98 | dma_handle = dma_handle |
102 | devres_add(dev, dr) |
104 | Return vaddr |
Name | Describe |
---|---|
dmam_alloc_coherent |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |