other versions
REMAP_PFN_RANGE(9) | Memory Management in Linux | REMAP_PFN_RANGE(9) |
NAME¶
remap_pfn_range - remap kernel memory to userspace
SYNOPSIS¶
int remap_pfn_range(struct vm_area_struct * vma, unsigned long addr, unsigned long pfn, unsigned long size, pgprot_t prot);
ARGUMENTS¶
struct vm_area_struct * vma
user vma to map to
unsigned long addr
target user address to start at
unsigned long pfn
physical address of kernel memory
unsigned long size
size of map area
pgprot_t prot
page protection flags for this mapping
NOTE¶
this is only safe if the mm semaphore is held when called.
COPYRIGHT¶
June 2017 | Kernel Hackers Manual 4.11 |