D7net Mini Sh3LL v1
Current File : /var/../bin/../include/../share/doc/libdb5.3/../dpkg-dev/../libapr1-dev/html/group__apr__shm.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Apache Portable Runtime: Shared Memory Routines</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Apache Portable Runtime
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Shared Memory Routines<div class="ingroups"><a class="el" href="group___a_p_r.html">Apache Portability Runtime library</a></div></div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for Shared Memory Routines:</div>
<div class="dyncontent">
<div class="center"><img src="group__apr__shm.png" border="0" usemap="#group____apr____shm" alt=""/></div>
<!-- MAP 0 -->
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga47cc28ddc5f32cf904383b9e4f82825b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#ga47cc28ddc5f32cf904383b9e4f82825b">APR_SHM_NS_LOCAL</a></td></tr>
<tr class="separator:ga47cc28ddc5f32cf904383b9e4f82825b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0de8e4acab42e7ff8e35e5ac9620f667"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><b>APR_SHM_NS_GLOBAL</b></td></tr>
<tr class="separator:ga0de8e4acab42e7ff8e35e5ac9620f667"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:ga79e8c16bdeaf7ade4ef0f935249e7c2f"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a></td></tr>
<tr class="separator:ga79e8c16bdeaf7ade4ef0f935249e7c2f"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gac370c4943c22505ce2b0d57c51805480"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#gac370c4943c22505ce2b0d57c51805480">apr_shm_create</a> (<a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> **m, apr_size_t reqsize, const char *filename, <a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *pool)</td></tr>
<tr class="separator:gac370c4943c22505ce2b0d57c51805480"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga21baaa66956641e06e072501f61882e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#ga21baaa66956641e06e072501f61882e7">apr_shm_create_ex</a> (<a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> **m, apr_size_t reqsize, const char *filename, <a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *pool, apr_int32_t flags)</td></tr>
<tr class="separator:ga21baaa66956641e06e072501f61882e7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaee8b7d9b952ff6157ddbb00fabb477e0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#gaee8b7d9b952ff6157ddbb00fabb477e0">apr_shm_remove</a> (const char *filename, <a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *pool)</td></tr>
<tr class="separator:gaee8b7d9b952ff6157ddbb00fabb477e0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gab5399f04b93193bead435217f46087fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#gab5399f04b93193bead435217f46087fd">apr_shm_delete</a> (<a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> *m)</td></tr>
<tr class="separator:gab5399f04b93193bead435217f46087fd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga7de5b65a9c7d9840bfa289854f8d59d4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#ga7de5b65a9c7d9840bfa289854f8d59d4">apr_shm_destroy</a> (<a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> *m)</td></tr>
<tr class="separator:ga7de5b65a9c7d9840bfa289854f8d59d4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga0e542941c280cb72b78e30d452464759"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#ga0e542941c280cb72b78e30d452464759">apr_shm_attach</a> (<a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> **m, const char *filename, <a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *pool)</td></tr>
<tr class="separator:ga0e542941c280cb72b78e30d452464759"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga088260723c96815610ff628f358d3630"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#ga088260723c96815610ff628f358d3630">apr_shm_attach_ex</a> (<a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> **m, const char *filename, <a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> *pool, apr_int32_t flags)</td></tr>
<tr class="separator:ga088260723c96815610ff628f358d3630"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga900095a06d3fdb4cdd04ca4449a9d42a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#ga900095a06d3fdb4cdd04ca4449a9d42a">apr_shm_detach</a> (<a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> *m)</td></tr>
<tr class="separator:ga900095a06d3fdb4cdd04ca4449a9d42a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gade739e1f5f4e88c93256a63ebfd47d4d"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#gade739e1f5f4e88c93256a63ebfd47d4d">apr_shm_baseaddr_get</a> (const <a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> *m)</td></tr>
<tr class="separator:gade739e1f5f4e88c93256a63ebfd47d4d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga557ae85d3f225620a77ad80caeaacac7"><td class="memItemLeft" align="right" valign="top">apr_size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#ga557ae85d3f225620a77ad80caeaacac7">apr_shm_size_get</a> (const <a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> *m)</td></tr>
<tr class="separator:ga557ae85d3f225620a77ad80caeaacac7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf519a2435ffc3524a8b9ba0b67fe7aa5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#gaf519a2435ffc3524a8b9ba0b67fe7aa5">APR_PERMS_SET_IMPLEMENT</a> (shm)</td></tr>
<tr class="separator:gaf519a2435ffc3524a8b9ba0b67fe7aa5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga072c40df7643e697885935ae65545098"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__apr__shm.html#ga072c40df7643e697885935ae65545098">apr_shm_pool_get</a> (const <a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> *theshm)</td></tr>
<tr class="separator:ga072c40df7643e697885935ae65545098"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga0de8e4acab42e7ff8e35e5ac9620f667"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0de8e4acab42e7ff8e35e5ac9620f667">◆ </a></span>APR_SHM_NS_GLOBAL</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define APR_SHM_NS_GLOBAL</td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"> 2 <span class="comment">/* Create or attach to named shared memory</span></div>
<div class="line"><span class="comment"> * segment in the "Global" namespace on</span></div>
<div class="line"><span class="comment"> * Windows. (Ignored on other platforms.)</span></div>
<div class="line"><span class="comment"> */</span></div>
</div><!-- fragment -->
</div>
</div>
<a id="ga47cc28ddc5f32cf904383b9e4f82825b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga47cc28ddc5f32cf904383b9e4f82825b">◆ </a></span>APR_SHM_NS_LOCAL</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define APR_SHM_NS_LOCAL</td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"> 1 <span class="comment">/* Create or attach to named shared memory</span></div>
<div class="line"><span class="comment"> * segment in the "Local" namespace on</span></div>
<div class="line"><span class="comment"> * Windows. (Ignored on other platforms.)</span></div>
<div class="line"><span class="comment"> * By default, the "Global" namespace is</span></div>
<div class="line"><span class="comment"> * used for privileged processes and the</span></div>
<div class="line"><span class="comment"> * "Local" namespace is used otherwise.</span></div>
<div class="line"><span class="comment"> */</span></div>
</div><!-- fragment --><p>Special processing flags for <a class="el" href="group__apr__shm.html#ga21baaa66956641e06e072501f61882e7">apr_shm_create_ex()</a> and <a class="el" href="group__apr__shm.html#ga088260723c96815610ff628f358d3630">apr_shm_attach_ex()</a>. </p>
</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="ga79e8c16bdeaf7ade4ef0f935249e7c2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga79e8c16bdeaf7ade4ef0f935249e7c2f">◆ </a></span>apr_shm_t</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> <a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Private, platform-specific data struture representing a shared memory segment. </p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaf519a2435ffc3524a8b9ba0b67fe7aa5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf519a2435ffc3524a8b9ba0b67fe7aa5">◆ </a></span>APR_PERMS_SET_IMPLEMENT()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">APR_PERMS_SET_IMPLEMENT </td>
<td>(</td>
<td class="paramtype">shm </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set shared memory permissions. </p>
</div>
</div>
<a id="ga0e542941c280cb72b78e30d452464759"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0e542941c280cb72b78e30d452464759">◆ </a></span>apr_shm_attach()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> apr_shm_attach </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> ** </td>
<td class="paramname"><em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> * </td>
<td class="paramname"><em>pool</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Attach to a shared memory segment that was created by another process. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">m</td><td>The shared memory structure to create. </td></tr>
<tr><td class="paramname">filename</td><td>The file used to create the original segment. (This MUST match the original filename.) </td></tr>
<tr><td class="paramname">pool</td><td>the pool from which to allocate the shared memory structure for this process. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga088260723c96815610ff628f358d3630"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga088260723c96815610ff628f358d3630">◆ </a></span>apr_shm_attach_ex()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> apr_shm_attach_ex </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> ** </td>
<td class="paramname"><em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> * </td>
<td class="paramname"><em>pool</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_int32_t </td>
<td class="paramname"><em>flags</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Attach to a shared memory segment that was created by another process, with platform-specific processing. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">m</td><td>The shared memory structure to create. </td></tr>
<tr><td class="paramname">filename</td><td>The file used to create the original segment. (This MUST match the original filename.) </td></tr>
<tr><td class="paramname">pool</td><td>the pool from which to allocate the shared memory structure for this process. </td></tr>
<tr><td class="paramname">flags</td><td>mask of APR_SHM_* (defined above) </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="gade739e1f5f4e88c93256a63ebfd47d4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gade739e1f5f4e88c93256a63ebfd47d4d">◆ </a></span>apr_shm_baseaddr_get()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* apr_shm_baseaddr_get </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> * </td>
<td class="paramname"><em>m</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve the base address of the shared memory segment. NOTE: This address is only usable within the callers address space, since this API does not guarantee that other attaching processes will maintain the same address mapping. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">m</td><td>The shared memory segment from which to retrieve the base address. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>address, aligned by APR_ALIGN_DEFAULT. </dd></dl>
</div>
</div>
<a id="gac370c4943c22505ce2b0d57c51805480"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac370c4943c22505ce2b0d57c51805480">◆ </a></span>apr_shm_create()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> apr_shm_create </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> ** </td>
<td class="paramname"><em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_size_t </td>
<td class="paramname"><em>reqsize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> * </td>
<td class="paramname"><em>pool</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create and make accessible a shared memory segment with default properties. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">m</td><td>The shared memory structure to create. </td></tr>
<tr><td class="paramname">reqsize</td><td>The desired size of the segment. </td></tr>
<tr><td class="paramname">filename</td><td>The file to use for shared memory on platforms that require it. </td></tr>
<tr><td class="paramname">pool</td><td>the pool from which to allocate the shared memory structure. </td></tr>
</table>
</dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>A note about Anonymous vs. Named shared memory segments: Not all plaforms support anonymous shared memory segments, but in some cases it is prefered over other types of shared memory implementations. Passing a NULL 'file' parameter to this function will cause the subsystem to use anonymous shared memory segments. If such a system is not available, APR_ENOTIMPL is returned. </dd>
<dd>
A note about allocation sizes: On some platforms it is necessary to store some metainformation about the segment within the actual segment. In order to supply the caller with the requested size it may be necessary for the implementation to request a slightly greater segment length from the subsystem. In all cases, the <a class="el" href="group__apr__shm.html#gade739e1f5f4e88c93256a63ebfd47d4d">apr_shm_baseaddr_get()</a> function will return the first usable byte of memory. </dd></dl>
</div>
</div>
<a id="ga21baaa66956641e06e072501f61882e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga21baaa66956641e06e072501f61882e7">◆ </a></span>apr_shm_create_ex()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> apr_shm_create_ex </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> ** </td>
<td class="paramname"><em>m</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_size_t </td>
<td class="paramname"><em>reqsize</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> * </td>
<td class="paramname"><em>pool</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">apr_int32_t </td>
<td class="paramname"><em>flags</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create and make accessible a shared memory segment with platform- specific processing. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">m</td><td>The shared memory structure to create. </td></tr>
<tr><td class="paramname">reqsize</td><td>The desired size of the segment. </td></tr>
<tr><td class="paramname">filename</td><td>The file to use for shared memory on platforms that require it. </td></tr>
<tr><td class="paramname">pool</td><td>the pool from which to allocate the shared memory structure. </td></tr>
<tr><td class="paramname">flags</td><td>mask of APR_SHM_* (defined above) </td></tr>
</table>
</dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>A note about Anonymous vs. Named shared memory segments: Not all plaforms support anonymous shared memory segments, but in some cases it is prefered over other types of shared memory implementations. Passing a NULL 'file' parameter to this function will cause the subsystem to use anonymous shared memory segments. If such a system is not available, APR_ENOTIMPL is returned. </dd>
<dd>
A note about allocation sizes: On some platforms it is necessary to store some metainformation about the segment within the actual segment. In order to supply the caller with the requested size it may be necessary for the implementation to request a slightly greater segment length from the subsystem. In all cases, the <a class="el" href="group__apr__shm.html#gade739e1f5f4e88c93256a63ebfd47d4d">apr_shm_baseaddr_get()</a> function will return the first usable byte of memory. </dd></dl>
</div>
</div>
<a id="gab5399f04b93193bead435217f46087fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab5399f04b93193bead435217f46087fd">◆ </a></span>apr_shm_delete()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> apr_shm_delete </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> * </td>
<td class="paramname"><em>m</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Delete named resource associated with a shared memory segment, preventing attachments to the resource. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">m</td><td>The shared memory segment structure to delete. </td></tr>
</table>
</dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>This function is only supported on platforms which support name-based shared memory segments, and will return APR_ENOTIMPL on platforms without such support. Removing the file while the shm is in use is not entirely portable, caller may use this to enhance obscurity of the resource, but be prepared for the call to fail, and for concurrent attempts to create a resource of the same name to also fail. The pool cleanup of apr_shm_create (apr_shm_destroy) also removes the named resource. </dd></dl>
</div>
</div>
<a id="ga7de5b65a9c7d9840bfa289854f8d59d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7de5b65a9c7d9840bfa289854f8d59d4">◆ </a></span>apr_shm_destroy()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> apr_shm_destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> * </td>
<td class="paramname"><em>m</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Destroy a shared memory segment and associated memory. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">m</td><td>The shared memory segment structure to destroy. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga900095a06d3fdb4cdd04ca4449a9d42a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga900095a06d3fdb4cdd04ca4449a9d42a">◆ </a></span>apr_shm_detach()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> apr_shm_detach </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> * </td>
<td class="paramname"><em>m</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Detach from a shared memory segment without destroying it. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">m</td><td>The shared memory structure representing the segment to detach from. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="ga072c40df7643e697885935ae65545098"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga072c40df7643e697885935ae65545098">◆ </a></span>apr_shm_pool_get()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a>* apr_shm_pool_get </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> * </td>
<td class="paramname"><em>theshm</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the pool used by this shared memory segment. </p>
</div>
</div>
<a id="gaee8b7d9b952ff6157ddbb00fabb477e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaee8b7d9b952ff6157ddbb00fabb477e0">◆ </a></span>apr_shm_remove()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__apr__errno.html#gaf76ee4543247e9fb3f3546203e590a6c">apr_status_t</a> apr_shm_remove </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__apr__pools.html#gaf137f28edcf9a086cd6bc36c20d7cdfb">apr_pool_t</a> * </td>
<td class="paramname"><em>pool</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Remove named resource associated with a shared memory segment, preventing attachments to the resource, but not destroying it. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>The filename associated with shared-memory segment which needs to be removed </td></tr>
<tr><td class="paramname">pool</td><td>The pool used for file operations </td></tr>
</table>
</dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>This function is only supported on platforms which support name-based shared memory segments, and will return APR_ENOTIMPL on platforms without such support. Removing the file while the shm is in use is not entirely portable, caller may use this to enhance obscurity of the resource, but be prepared for the call to fail, and for concurrent attempts to create a resource of the same name to also fail. The pool cleanup of apr_shm_create (apr_shm_destroy) also removes the named resource. </dd></dl>
</div>
</div>
<a id="ga557ae85d3f225620a77ad80caeaacac7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga557ae85d3f225620a77ad80caeaacac7">◆ </a></span>apr_shm_size_get()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_size_t apr_shm_size_get </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="group__apr__shm.html#ga79e8c16bdeaf7ade4ef0f935249e7c2f">apr_shm_t</a> * </td>
<td class="paramname"><em>m</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve the length of a shared memory segment in bytes. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">m</td><td>The shared memory segment from which to retrieve the segment length. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
AnonSec - 2021 | Recode By D7net