vm_insert_pfn (9) - Linux Man Pages
vm_insert_pfn: insert single pfn into user vma
vm_insert_pfn - insert single pfn into user vma
int vm_insert_pfn(struct vm_area_struct
*vma, unsigned long addr, unsigned long pfn);
- user vma to map to
- target user address of this page
- source kernel pfn
Similar to vm_insert_page, this allows drivers to insert individual pages they've allocated into a user vma. Same comments apply.
This function should only be called from a vm_ops->fault handler, and in that case the handler should return NULL.
vma cannot be a COW mapping.