'\" t .\" Title: remap_pfn_range .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "REMAP_PFN_RANGE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Memory Management in Linux" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" remap_pfn_range \- remap kernel memory to userspace .SH "SYNOPSIS" .HP \w'int\ remap_pfn_range('u .BI "int remap_pfn_range(struct\ vm_area_struct\ *\ " "vma" ", unsigned\ long\ " "addr" ", unsigned\ long\ " "pfn" ", unsigned\ long\ " "size" ", pgprot_t\ " "prot" ");" .SH "ARGUMENTS" .PP \fIvma\fR .RS 4 user vma to map to .RE .PP \fIaddr\fR .RS 4 target user address to start at .RE .PP \fIpfn\fR .RS 4 physical address of kernel memory .RE .PP \fIsize\fR .RS 4 size of map area .RE .PP \fIprot\fR .RS 4 page protection flags for this mapping .RE .SH "NOTE" .PP this is only safe if the mm semaphore is held when called\&. .SH "COPYRIGHT" .br