'\" t .\" Title: remap_pfn_range .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "REMAP_PFN_RANGE" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "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 \fIstruct vm_area_struct * vma\fR .RS 4 user vma to map to .RE .PP \fIunsigned long addr\fR .RS 4 target user address to start at .RE .PP \fIunsigned long pfn\fR .RS 4 physical address of kernel memory .RE .PP \fIunsigned long size\fR .RS 4 size of map area .RE .PP \fIpgprot_t prot\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