Sophie

Sophie

distrib > Fedora > 18 > x86_64 > media > updates > by-pkgid > 1a595394b241504ff370a8d12ebfcea7 > files > 2981

kernel-doc-3.11.10-100.fc18.noarch.rpm

<?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.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-vm-iomap-memory.html" title="vm_iomap_memory" /><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 class="phrase">unmap_mapping_range</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-vm-iomap-memory.html">Prev</a>&#160;</td><th width="60%" align="center">More Memory Management Functions</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-follow-pfn.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="API-unmap-mapping-range"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>unmap_mapping_range &#8212; 
     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"><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">void <strong class="fsfunc">unmap_mapping_range </strong>(</code></td><td>struct address_space * <var class="pdparam">mapping</var>, </td></tr><tr><td>&#160;</td><td>loff_t const <var class="pdparam">holebegin</var>, </td></tr><tr><td>&#160;</td><td>loff_t const <var class="pdparam">holelen</var>, </td></tr><tr><td>&#160;</td><td>int <var class="pdparam">even_cows</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer">&#160;</div></div></div><div class="refsect1"><a id="idm139749899465904"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><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-vm-iomap-memory.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch04s03.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-follow-pfn.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">vm_iomap_memory</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">follow_pfn</span></td></tr></table></div></body></html>