vm_iomap_memory — remap memory to userspace
|struct vm_area_struct * vma,|
|unsigned long len|
struct vm_area_struct * vma
user vma to map to
start of area
unsigned long len
size of area
This is a simplified
io_remap_pfn_range for common driver use. The
driver just needs to give us the physical memory range to be mapped,
we'll figure out the rest from the vma information.
NOTE! Some drivers might want to tweak vma->vm_page_prot first to get whatever write-combining details or similar.