|
Apache HTTPD
|
#include <ap_slotmem.h>
Definition at line 86 of file ap_slotmem.h.
| apr_status_t(* ap_slotmem_provider_t::attach) (ap_slotmem_instance_t **inst, const char *name, apr_size_t *item_size, unsigned int *item_num, apr_pool_t *pool) |
attach to an existing slotmem. This would attach to shared memory, basically.
| inst | where to store pointer to slotmem |
| name | a key used for debugging and in mod_status output or allow another process to share this space. |
| item_size | size of each item |
| item_num | max number of item. |
| pool | is pool to memory allocate. |
Definition at line 122 of file ap_slotmem.h.
| apr_status_t(* ap_slotmem_provider_t::create) (ap_slotmem_instance_t **inst, const char *name, apr_size_t item_size, unsigned int item_num, ap_slotmem_type_t type, apr_pool_t *pool) |
create a new slotmem with each item size is item_size. This would create shared memory, basically.
| inst | where to store pointer to slotmem |
| name | a key used for debugging and in mod_status output or allow another process to share this space. |
| item_size | size of each item |
| item_num | number of item to create. |
| type | type of slotmem. |
| pool | is pool used |
Definition at line 111 of file ap_slotmem.h.
| apr_status_t(* ap_slotmem_provider_t::doall) (ap_slotmem_instance_t *s, ap_slotmem_callback_fn_t *func, void *data, apr_pool_t *pool) |
call the callback on all worker slots
| s | ap_slotmem_instance_t to use. |
| funct | callback function to call for each element. |
| data | parameter for the callback function. |
| pool | is pool used |
Definition at line 99 of file ap_slotmem.h.
| apr_status_t(* ap_slotmem_provider_t::dptr) (ap_slotmem_instance_t *s, unsigned int item_id, void **mem) |
get the memory ptr associated with this worker slot.
| s | ap_slotmem_instance_t to use. |
| item_id | item to return for 0 to item_num |
| mem | address to store the pointer to the slot |
Definition at line 130 of file ap_slotmem.h.
| apr_status_t(* ap_slotmem_provider_t::fgrab) (ap_slotmem_instance_t *s, unsigned int item_id) |
forced grab (or alloc) a slot associated with this item_id
| s | ap_slotmem_instance_t to use. |
| item_id | to the specified slot id and marked as in-use |
Definition at line 189 of file ap_slotmem.h.
| apr_status_t(* ap_slotmem_provider_t::get) (ap_slotmem_instance_t *s, unsigned int item_id, unsigned char *dest, apr_size_t dest_len) |
get/read the data associated with this worker slot.
| s | ap_slotmem_instance_t to use. |
| item_id | item to return for 0 to item_num |
| dest | address to store the data |
| dest_len | length of dataset to retrieve |
Definition at line 139 of file ap_slotmem.h.
| apr_status_t(* ap_slotmem_provider_t::grab) (ap_slotmem_instance_t *s, unsigned int *item_id) |
grab (or alloc) a free slot
| s | ap_slotmem_instance_t to use. |
| item_id | ptr to the available slot id and marked as in-use |
Definition at line 175 of file ap_slotmem.h.
Definition at line 90 of file ap_slotmem.h.
| unsigned int(* ap_slotmem_provider_t::num_free_slots) (ap_slotmem_instance_t *s) |
return number of free (not used) slots allocated for this entry. Valid for slots which are AP_SLOTMEM_TYPE_PREGRAB as well as any which use get/release.
| s | ap_slotmem_instance_t to use. |
Definition at line 162 of file ap_slotmem.h.
| unsigned int(* ap_slotmem_provider_t::num_slots) (ap_slotmem_instance_t *s) |
return number of slots allocated for this entry.
| s | ap_slotmem_instance_t to use. |
Definition at line 154 of file ap_slotmem.h.
| apr_status_t(* ap_slotmem_provider_t::put) (ap_slotmem_instance_t *slot, unsigned int item_id, unsigned char *src, apr_size_t src_len) |
put/write the data associated with this worker slot.
| s | ap_slotmem_instance_t to use. |
| item_id | item to return for 0 to item_num |
| src | address of the data to store in the slot |
| src_len | length of dataset to store in the slot |
Definition at line 148 of file ap_slotmem.h.
| apr_status_t(* ap_slotmem_provider_t::release) (ap_slotmem_instance_t *s, unsigned int item_id) |
release (or free) the slot associated with this item_id
| s | ap_slotmem_instance_t to use. |
| item_id | slot id to free and mark as no longer in-use |
Definition at line 182 of file ap_slotmem.h.
| apr_size_t(* ap_slotmem_provider_t::slot_size) (ap_slotmem_instance_t *s) |
return slot size allocated for this entry.
| s | ap_slotmem_instance_t to use. |
Definition at line 168 of file ap_slotmem.h.