mod_slotmem_plain.html.en revision 7fec19672a491661b2fe4b29f685bc7f4efa64d4
10eed2803538d660048f6e733602e82a75ef6885noodl<?xml version="1.0" encoding="ISO-8859-1"?>
10eed2803538d660048f6e733602e82a75ef6885noodl<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd This file is generated from xml source: DO NOT EDIT
10eed2803538d660048f6e733602e82a75ef6885noodl XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
10eed2803538d660048f6e733602e82a75ef6885noodl -->
10eed2803538d660048f6e733602e82a75ef6885noodl<title>mod_slotmem_plain - Apache HTTP Server</title>
10eed2803538d660048f6e733602e82a75ef6885noodl<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
10eed2803538d660048f6e733602e82a75ef6885noodl<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="/style/css/prettify.css" />
10eed2803538d660048f6e733602e82a75ef6885noodl<script src="/style/scripts/prettify.js" type="text/javascript">
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen</script>
2e545ce2450a9953665f701bb05350f0d3f26275nd
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<link href="/images/favicon.ico" rel="shortcut icon" /></head>
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen<body>
10eed2803538d660048f6e733602e82a75ef6885noodl<div id="page-header">
10eed2803538d660048f6e733602e82a75ef6885noodl<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p>
10eed2803538d660048f6e733602e82a75ef6885noodl<p class="apache">Apache HTTP Server Version 2.5</p>
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<img alt="" src="/images/feather.gif" /></div>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
10eed2803538d660048f6e733602e82a75ef6885noodl<div id="path">
10eed2803538d660048f6e733602e82a75ef6885noodl<a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP Server</a> &gt; <a href="http://httpd.apache.org/docs/">Documentation</a> &gt; <a href="../">Version 2.5</a> &gt; <a href="./">Modules</a></div>
10eed2803538d660048f6e733602e82a75ef6885noodl<div id="page-content">
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<div id="preamble"><h1>Apache Module mod_slotmem_plain</h1>
10eed2803538d660048f6e733602e82a75ef6885noodl<div class="toplang">
10eed2803538d660048f6e733602e82a75ef6885noodl<p><span>Available Languages: </span><a href="/en/mod/mod_slotmem_plain.html" title="English">&nbsp;en&nbsp;</a></p>
10eed2803538d660048f6e733602e82a75ef6885noodl</div>
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Slot-based shared memory provider.</td></tr>
10eed2803538d660048f6e733602e82a75ef6885noodl<tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
10eed2803538d660048f6e733602e82a75ef6885noodl<tr><th><a href="module-dict.html#ModuleIdentifier">Module�Identifier:</a></th><td>mod_slotmem_plain</td></tr>
7f0952c0239ea2d6e37b472db6fde4ef2718343dsf<tr><th><a href="module-dict.html#SourceFile">Source�File:</a></th><td>mod_slotmem_plain.c</td></tr></table>
10eed2803538d660048f6e733602e82a75ef6885noodl<h3>Summary</h3>
b09fcdfc59ada4712150e7bcc7b502bb9e4601d8rjung
10eed2803538d660048f6e733602e82a75ef6885noodl <p><code>mod_slotmem_plain</code> is a memory provider which
10eed2803538d660048f6e733602e82a75ef6885noodl provides for creation and access to a plain memory segment
10eed2803538d660048f6e733602e82a75ef6885noodl in which the datasets are organized in "slots."
10eed2803538d660048f6e733602e82a75ef6885noodl </p>
10eed2803538d660048f6e733602e82a75ef6885noodl
10eed2803538d660048f6e733602e82a75ef6885noodl <p>If the memory needs to be shared between threads and
10eed2803538d660048f6e733602e82a75ef6885noodl processes, a better provider would be
10eed2803538d660048f6e733602e82a75ef6885noodl <code class="module"><a href="/mod/mod_slotmem_shm.html">mod_slotmem_shm</a></code>.
10eed2803538d660048f6e733602e82a75ef6885noodl </p>
2eb7a8afc318286c210a1fbb2ff2ba904471956frjung
10eed2803538d660048f6e733602e82a75ef6885noodl <p><code>mod_slotmem_plain</code> provides the following API functions:
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh </p>
1f1b6bf13313fdd14a45e52e553d3ff28689b717coar
10eed2803538d660048f6e733602e82a75ef6885noodl <dl>
10eed2803538d660048f6e733602e82a75ef6885noodl <dt>apr_status_t doall(ap_slotmem_instance_t *s, ap_slotmem_callback_fn_t *func, void *data, apr_pool_t *pool)</dt>
10eed2803538d660048f6e733602e82a75ef6885noodl <dd>call the callback on all worker slots</dd>
10eed2803538d660048f6e733602e82a75ef6885noodl
2060bb0b7e53ae377492426fe35fe4d3cf5bf815jim <dt>apr_status_t create(ap_slotmem_instance_t **new, const char *name, apr_size_t item_size, unsigned int item_num, ap_slotmem_type_t type, apr_pool_t *pool)</dt>
10eed2803538d660048f6e733602e82a75ef6885noodl <dd>create a new slotmem with each item size is item_size.</dd>
10eed2803538d660048f6e733602e82a75ef6885noodl
7f0952c0239ea2d6e37b472db6fde4ef2718343dsf <dt>apr_status_t attach(ap_slotmem_instance_t **new, const char *name, apr_size_t *item_size, unsigned int *item_num, apr_pool_t *pool)</dt>
10eed2803538d660048f6e733602e82a75ef6885noodl <dd>attach to an existing slotmem.</dd>
10eed2803538d660048f6e733602e82a75ef6885noodl
10eed2803538d660048f6e733602e82a75ef6885noodl <dt>apr_status_t dptr(ap_slotmem_instance_t *s, unsigned int item_id, void**mem)</dt>
10eed2803538d660048f6e733602e82a75ef6885noodl <dd>get the direct pointer to the memory associated with this worker slot.</dd>
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
10eed2803538d660048f6e733602e82a75ef6885noodl <dt>apr_status_t get(ap_slotmem_instance_t *s, unsigned int item_id, unsigned char *dest, apr_size_t dest_len)</dt>
10eed2803538d660048f6e733602e82a75ef6885noodl <dd>get/read the memory from this slot to dest</dd>
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf
10eed2803538d660048f6e733602e82a75ef6885noodl <dt>apr_status_t put(ap_slotmem_instance_t *slot, unsigned int item_id, unsigned char *src, apr_size_t src_len)</dt>
10eed2803538d660048f6e733602e82a75ef6885noodl <dd>put/write the data from src to this slot</dd>
10eed2803538d660048f6e733602e82a75ef6885noodl
10eed2803538d660048f6e733602e82a75ef6885noodl <dt>unsigned int num_slots(ap_slotmem_instance_t *s)</dt>
10eed2803538d660048f6e733602e82a75ef6885noodl <dd>return the total number of slots in the segment</dd>
10eed2803538d660048f6e733602e82a75ef6885noodl
10eed2803538d660048f6e733602e82a75ef6885noodl <dt>apr_size_t slot_size(ap_slotmem_instance_t *s)</dt>
10eed2803538d660048f6e733602e82a75ef6885noodl <dd>return the total data size, in bytes, of a slot in the segment</dd>
10eed2803538d660048f6e733602e82a75ef6885noodl
10eed2803538d660048f6e733602e82a75ef6885noodl <dt>apr_status_t grab(ap_slotmem_instance_t *s, unsigned int item_id);</dt>
2060bb0b7e53ae377492426fe35fe4d3cf5bf815jim <dd>grab or allocate a slot and mark as in-use (does not do any data copying)</dd>
2060bb0b7e53ae377492426fe35fe4d3cf5bf815jim
2060bb0b7e53ae377492426fe35fe4d3cf5bf815jim <dt>apr_status_t release(ap_slotmem_instance_t *s, unsigned int item_id);</dt>
2060bb0b7e53ae377492426fe35fe4d3cf5bf815jim <dd>release or free a slot and mark as not in-use (does not do any data copying)</dd>
2060bb0b7e53ae377492426fe35fe4d3cf5bf815jim </dl>
2060bb0b7e53ae377492426fe35fe4d3cf5bf815jim
2060bb0b7e53ae377492426fe35fe4d3cf5bf815jim</div>
2060bb0b7e53ae377492426fe35fe4d3cf5bf815jim<div id="quickview"><h3 class="directives">Directives</h3>
10eed2803538d660048f6e733602e82a75ef6885noodl<p>This module provides no
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf directives.</p>
1f1b6bf13313fdd14a45e52e553d3ff28689b717coar</div>
a4784b5a082381b03e972caf3aa052a64c68f06dhumbedooh
a4784b5a082381b03e972caf3aa052a64c68f06dhumbedooh</div>
4aa603e6448b99f9371397d439795c91a93637eand<div class="bottomlang">
e487d6c09669296f94a5190cc34586a98e624a00nd<p><span>Available Languages: </span><a href="/en/mod/mod_slotmem_plain.html" title="English">&nbsp;en&nbsp;</a></p>
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf</div><div id="footer">
10eed2803538d660048f6e733602e82a75ef6885noodl<p class="apache">Copyright 2012 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
10eed2803538d660048f6e733602e82a75ef6885noodl<p class="menu"><a href="/mod/">Modules</a> | <a href="/mod/directives.html">Directives</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">Glossary</a> | <a href="/sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsfif (typeof(prettyPrint) !== undefined) {
1f1b6bf13313fdd14a45e52e553d3ff28689b717coar prettyPrint();
a4784b5a082381b03e972caf3aa052a64c68f06dhumbedooh}
a4784b5a082381b03e972caf3aa052a64c68f06dhumbedooh//--><!]]></script>
4aa603e6448b99f9371397d439795c91a93637eand</body></html>