remap_pfn_range(9)

Submitted by Jeremy
on July 19, 2007 - 1:23am
.\" Title: remap_pfn_range .\" Author: .\" Generator: DocBook XSL Stylesheets v1.70.1 .\" Date: July 2007 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 2.6.22 .\" .TH "REMAP_PFN_RANGE" "9" "July 2007" "Kernel Hackers Manual 2.6.22" "Memory Management in Linux" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .SH "NAME" remap_pfn_range \- remap kernel memory to userspace .SH "SYNOPSIS" .HP 20 .BI "int remap_pfn_range(struct\ vm_area_struct\ *\ " "vma" ", unsigned\ long\ " "addr" ", unsigned\ long\ " "pfn" ", unsigned\ long\ " "size" ", pgprot_t\ " "prot" ");" .SH "ARGUMENTS" .TP 3n \fIvma\fR user vma to map to .TP 3n \fIaddr\fR target user address to start at .TP 3n \fIpfn\fR physical address of kernel memory .TP 3n \fIsize\fR size of map area .TP 3n \fIprot\fR page protection flags for this mapping .SH "NOTE" .PP this is only safe if the mm semaphore is held when called. .SH "COPYRIGHT"