1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>remap_vmalloc_range</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="The Linux Kernel API"><link rel="up" href="ch04s03.html" title="More Memory Management Functions"><link rel="prev" href="API-remap-vmalloc-range-partial.html" title="remap_vmalloc_range_partial"><link rel="next" href="API-alloc-vm-area.html" title="alloc_vm_area"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">remap_vmalloc_range</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-remap-vmalloc-range-partial.html">Prev</a> </td><th width="60%" align="center">More Memory Management Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-alloc-vm-area.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-remap-vmalloc-range"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>remap_vmalloc_range — 2 map vmalloc pages to userspace 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">remap_vmalloc_range </b>(</code></td><td>struct vm_area_struct * <var class="pdparam">vma</var>, </td></tr><tr><td> </td><td>void * <var class="pdparam">addr</var>, </td></tr><tr><td> </td><td>unsigned long <var class="pdparam">pgoff</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1124496220"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>vma</code></em></span></dt><dd><p> 4 vma to cover (map full range of vma) 5 </p></dd><dt><span class="term"><em class="parameter"><code>addr</code></em></span></dt><dd><p> 6 vmalloc memory 7 </p></dd><dt><span class="term"><em class="parameter"><code>pgoff</code></em></span></dt><dd><p> 8 number of pages into addr before first page to map 9 </p></dd></dl></div></div><div class="refsect1"><a name="idp1124499908"></a><h2>Returns</h2><p> 10 0 for success, -Exxx on failure 11 </p><p> 12 13 This function checks that addr is a valid vmalloc'ed area, and 14 that it is big enough to cover the vma. Will return failure if 15 that criteria isn't met. 16 </p><p> 17 18 Similar to <code class="function">remap_pfn_range</code> (see mm/memory.c) 19</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-remap-vmalloc-range-partial.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04s03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-alloc-vm-area.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">remap_vmalloc_range_partial</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">alloc_vm_area</span></td></tr></table></div></body></html> 20