'\" t .\" Title: vm_iomap_memory .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "VM_IOMAP_MEMORY" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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" vm_iomap_memory \- remap memory to userspace .SH "SYNOPSIS" .HP \w'int\ vm_iomap_memory('u .BI "int vm_iomap_memory(struct\ vm_area_struct\ *\ " "vma" ", phys_addr_t\ " "start" ", unsigned\ long\ " "len" ");" .SH "ARGUMENTS" .PP \fIvma\fR .RS 4 user vma to map to .RE .PP \fIstart\fR .RS 4 start of area .RE .PP \fIlen\fR .RS 4 size of area .RE .SH "DESCRIPTION" .PP This is a simplified \fBio_remap_pfn_range\fR for common driver use\&. The driver just needs to give us the physical memory range to be mapped, we\*(Aqll figure out the rest from the vma information\&. .PP NOTE! Some drivers might want to tweak vma\->vm_page_prot first to get whatever write\-combining details or similar\&. .SH "COPYRIGHT" .br