remap_pfn_range9
Remap kernel memory to userspace
Usage
int remap_pfn_range(struct vm_area_struct * vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot);
Arguments
vma
user vma to map to
addr
target user address to start at
pfn
physical address of kernel memory
size
size of map area
prot
page protection flags for this mapping
Note
this is only safe if the mm semaphore is held when called.
Releases
6 releases since Debian 4.0 (Etch); the text changed 5 times.