table of contents
other versions
- stretch 4.9.168-1
VM_INSERT_PFN_PROT(9) | Memory Management in Linux | VM_INSERT_PFN_PROT(9) |
NAME¶
vm_insert_pfn_prot - insert single pfn into user vma with specified pgprotSYNOPSIS¶
int vm_insert_pfn_prot(struct vm_area_struct * vma, unsigned long addr, unsigned long pfn, pgprot_t pgprot);
ARGUMENTS¶
vmauser vma to map to
addr
target user address of this page
pfn
source kernel pfn
pgprot
pgprot flags for the inserted page
DESCRIPTION¶
This is exactly like vm_insert_pfn, except that it allows drivers to to override pgprot on a per-page basis.This only makes sense for IO mappings, and it makes no sense for cow mappings. In general, using multiple vmas is preferable; vm_insert_pfn_prot should only be used if using multiple VMAs is impractical.
COPYRIGHT¶
April 2019 | Kernel Hackers Manual 4.9. |