Function report |
Source Code:kernel\dma\mapping.c |
Create Date:2022-07-28 10:32:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Create userspace mapping for the DMA-coherent memory.
Proto:int dma_common_mmap(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
struct vm_area_struct * | vma | |
void * | cpu_addr | |
dma_addr_t | dma_addr | |
size_t | size | |
unsigned long | attrs |
177 | user_count = vma_pages(vma) |
178 | count = align the pointer to the (next) page boundary (size) >> PAGE_SHIFT determines the page size |
182 | Access permissions of this VMA. = Return the page attributes used for mapping dma_alloc_* memory, either in* kernel space if remapping is needed, or to userspace through dma_mmap_*. |
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 |