<trclass="memdesc:a87b285c49a6683ae3c610a6ec8499f18"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Releases the memory-mapped region by calling <code>munmap()</code>. <ahref="#a87b285c49a6683ae3c610a6ec8499f18">More...</a><br/></td></tr>
<trclass="memdesc:a9b44f238c848c89e5d7e44397aa8f623"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Releases any existing memory-mapped region and sets the object to maintain an already-established mapping. <ahref="#a9b44f238c848c89e5d7e44397aa8f623">More...</a><br/></td></tr>
<trclass="memitem:a7ffebf17ea68beb81637056c1371d2f9"><tdclass="memItemLeft"align="right"valign="top">bool </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcrashpad_1_1ScopedMmap.html#a7ffebf17ea68beb81637056c1371d2f9">ResetMmap</a> (void *<aclass="el"href="classcrashpad_1_1ScopedMmap.html#a1cfd4d998cc115656c7af6ec54692f9f">addr</a>, size_t <aclass="el"href="classcrashpad_1_1ScopedMmap.html#a430d138d22b27b5553baf7d47b05519d">len</a>, int prot, int flags, int fd, off_t offset)</td></tr>
<trclass="memdesc:a7ffebf17ea68beb81637056c1371d2f9"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Releases any existing memory-mapped region and establishes a new one by calling <code>mmap()</code>. <ahref="#a7ffebf17ea68beb81637056c1371d2f9">More...</a><br/></td></tr>
<trclass="memdesc:a6ba22671a482ee2627e8e45f11c98b19"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the protection of the memory-mapped region by calling <code>mprotect()</code>. <ahref="#a6ba22671a482ee2627e8e45f11c98b19">More...</a><br/></td></tr>
<trclass="memdesc:a1cfd4d998cc115656c7af6ec54692f9f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the base address of the memory-mapped region. <br/></td></tr>
<trclass="memdesc:a73f38d8efda3d4c056d9fe06d5b0214e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the base address of the memory-mapped region, casted to a type of the caller’s choosing. <br/></td></tr>
<trclass="memdesc:a430d138d22b27b5553baf7d47b05519d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the size of the memory-mapped region. <br/></td></tr>
<p>Releases any existing memory-mapped region and sets the object to maintain an already-established mapping. </p>
<p>If <em>addr</em> and <em>len</em> indicate a region that overlaps with the existing memory-mapped region, only the portion of the existing memory-mapped region that does not overlap the new region, if any, will be released.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">addr</td><td>The base address of the existing memory-mapped region to maintain. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">len</td><td>The size of the existing memory-mapped region to maintain.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success. <code>false</code> on failure, with a message logged. </dd></dl>
<p>Releases any existing memory-mapped region and establishes a new one by calling <code>mmap()</code>. </p>
<p>The parameters to this method are passed directly to <code>mmap()</code>.</p>
<dlclass="section return"><dt>Returns</dt><dd><code>true</code> on success. <code>false</code> on failure, with a message logged. A message will also be logged on failure to release any existing memory-mapped region, but this will not preclude <code>mmap()</code> from being called or a new mapping from being established, and if such a call to <code>mmap()</code> is successful, this method will return <code>true</code>. </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>util/posix/scoped_mmap.h</li>
<li>util/posix/scoped_mmap.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hrclass="footer"/><addressclass="footer"><small>
Generated by  <ahref="http://www.doxygen.org/index.html">