Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
ssize_t | size | |
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 |
Name | Describe |
---|---|
dma_alloc_attrs |
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 |