Function report |
Source Code:kernel\dma\direct.c |
Create Date:2022-07-28 10:33:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dma_direct_alloc_pages
Proto:void *dma_direct_alloc_pages(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 |
149 | If Not page Then Return NULL |
172 | If Not ret Then |
173 | dma_free_contiguous(dev, page, size) |
174 | Return ret |
178 | Go to done |
181 | If PageHighMem(page) Then |
189 | dma_free_contiguous(dev, page, size) |
190 | Return NULL |
193 | ret = page_address(page) |
201 | arch_dma_prep_coherent(page, size) |
202 | ret = uncached_kernel_address(ret) |
204 | done : |
205 | If force_dma_unencrypted(dev) Then dma_handle = __phys_to_dma(dev, Change "struct page" to physical address.(page)) |
209 | Return ret |
Name | Describe |
---|---|
dma_direct_alloc | |
gart_alloc_coherent | allocate and map a coherent mapping |
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 |