<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>unmap_mapping_range</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.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-pfn-range.html" title="remap_pfn_range" /><link rel="next" href="API-follow-pfn.html" title="follow_pfn" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span>unmap_mapping_range</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-remap-pfn-range.html">Prev</a> </td><th width="60%" align="center">More Memory Management Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-follow-pfn.html">Next</a></td></tr></table><hr /></div><div class="refentry" title="unmap_mapping_range"><a id="API-unmap-mapping-range"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>unmap_mapping_range — unmap the portion of all mmaps in the specified address_space corresponding to the specified page range in the underlying file. </p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">void <strong>fsfuncunmap_mapping_range </strong>(</code></td><td>struct address_space * <var class="pdparam">mapping</var>, </td></tr><tr><td> </td><td>loff_t const <var class="pdparam">holebegin</var>, </td></tr><tr><td> </td><td>loff_t const <var class="pdparam">holelen</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">even_cows</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1" title="Arguments"><a id="id2602536"></a><h2>Arguments</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>mapping</code></em></span></dt><dd><p> the address space containing mmaps to be unmapped. </p></dd><dt><span class="term"><em class="parameter"><code>holebegin</code></em></span></dt><dd><p> byte in first page to unmap, relative to the start of the underlying file. This will be rounded down to a PAGE_SIZE boundary. Note that this is different from <code class="function">truncate_pagecache</code>, which must keep the partial page. In contrast, we must get rid of partial pages. </p></dd><dt><span class="term"><em class="parameter"><code>holelen</code></em></span></dt><dd><p> size of prospective hole in bytes. This will be rounded up to a PAGE_SIZE boundary. A holelen of zero truncates to the end of the file. </p></dd><dt><span class="term"><em class="parameter"><code>even_cows</code></em></span></dt><dd><p> 1 when truncating a file, unmap even private COWed pages; but 0 when invalidating pagecache, don't throw away private data. </p></dd></dl></div></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-remap-pfn-range.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-follow-pfn.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span>remap_pfn_range</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>follow_pfn</span></td></tr></table></div></body></html>