vm_insert_pfn

Langue: en

Autres versions - même langue

Version: June 2009 (debian - 07/07/09)

Section: 9 (Appels noyau Linux)

NAME

vm_insert_pfn - insert single pfn into user vma

SYNOPSIS

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

DESCRIPTION

Similar to vm_inert_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.