mod_slotmem_plain.html.en revision 7fec19672a491661b2fe4b29f685bc7f4efa64d4
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<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<link href="/images/favicon.ico" rel="shortcut icon" /></head>
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>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div>
10eed2803538d660048f6e733602e82a75ef6885noodl<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.5</a> > <a href="./">Modules</a></div>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<div id="preamble"><h1>Apache Module mod_slotmem_plain</h1>
10eed2803538d660048f6e733602e82a75ef6885noodl<p><span>Available Languages: </span><a href="/en/mod/mod_slotmem_plain.html" title="English"> en </a></p>
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 <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>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><code>mod_slotmem_plain</code> provides the following API functions:
10eed2803538d660048f6e733602e82a75ef6885noodl <dt>apr_status_t doall(ap_slotmem_instance_t *s, ap_slotmem_callback_fn_t *func, void *data, apr_pool_t *pool)</dt>
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>
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 <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>
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 <dt>apr_status_t put(ap_slotmem_instance_t *slot, unsigned int item_id, unsigned char *src, apr_size_t src_len)</dt>
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 <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 <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 <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<div id="quickview"><h3 class="directives">Directives</h3>
10eed2803538d660048f6e733602e82a75ef6885noodl<p>This module provides no
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf directives.</p>
e487d6c09669296f94a5190cc34586a98e624a00nd<p><span>Available Languages: </span><a href="/en/mod/mod_slotmem_plain.html" title="English"> en </a></p>
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();