vm_insert_pfn(9)

vm_insert_pfn9

Insert single pfn into user vma

Usage

int vm_insert_pfn(struct vm_area_struct * vma, unsigned long addr, unsigned long pfn);

Arguments

vma

user vma to map to

addr

target user address of this page

pfn

source kernel pfn

Overview

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.

As this is called only for pages that do not currently exist, we do not need to flush old virtual caches or the TLB.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.