|
Apache HTTPD
|
Typedefs | |
| typedef struct apr_rmm_t | apr_rmm_t |
| typedef apr_size_t | apr_rmm_off_t |
Functions | |
| APU_DECLARE (apr_status_t) apr_rmm_init(apr_rmm_t **rmm | |
| APU_DECLARE (apr_rmm_off_t) apr_rmm_malloc(apr_rmm_t *rmm | |
| APU_DECLARE (void *) apr_rmm_addr_get(apr_rmm_t *rmm | |
Variables | |
| apr_anylock_t * | lock |
| apr_anylock_t void * | membuf |
| apr_anylock_t void apr_size_t | memsize |
| apr_anylock_t void apr_size_t apr_pool_t * | cont |
| apr_size_t | reqsize |
| void * | entity |
| APU_DECLARE | ( | apr_rmm_off_t | ) |
Allocate memory from the block of relocatable memory.
| rmm | The relocatable memory block |
| reqsize | How much memory to allocate |
Realloc memory from the block of relocatable memory.
| rmm | The relocatable memory block |
| entity | The memory allocation to realloc |
| reqsize | The new size |
Allocate memory from the block of relocatable memory and initialize it to zero.
| rmm | The relocatable memory block |
| reqsize | How much memory to allocate |
Compute the offset of a relocatable allocation of memory
| rmm | The relocatable memory block |
| entity | The physical address to convert to an offset |
Compute the required overallocation of memory needed to fit n allocs
| n | The number of alloc/calloc regions desired |
| APU_DECLARE | ( | apr_status_t | ) |
Initialize a relocatable memory block to be managed by the apr_rmm API.
| rmm | The relocatable memory block |
| lock | An apr_anylock_t of the appropriate type of lock, or NULL if no locking is required. |
| membuf | The block of relocatable memory to be managed |
| memsize | The size of relocatable memory block to be managed |
| cont | The pool to use for local storage and management |
| membuf | and |
| memsize | must be aligned (for instance using APR_ALIGN_DEFAULT). |
Destroy a managed memory block.
| rmm | The relocatable memory block to destroy |
Attach to a relocatable memory block already managed by the apr_rmm API.
| rmm | The relocatable memory block |
| lock | An apr_anylock_t of the appropriate type of lock |
| membuf | The block of relocatable memory already under management |
| cont | The pool to use for local storage and management |
Detach from the managed block of memory.
| rmm | The relocatable memory block to detach from |
Free allocation returned by apr_rmm_malloc or apr_rmm_calloc.
| rmm | The relocatable memory block |
| entity | The memory allocation to free |
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Replace
< Insert with duplicates
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< mask to extract lock type
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Size of the file
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
Definition at line 358 of file apr_brigade.c.
| APU_DECLARE | ( | void * | ) |
Retrieve the physical address of a relocatable allocation of memory
| rmm | The relocatable memory block |
| entity | The memory allocation to free |
| apr_anylock_t void apr_pool_t * cont |
| apr_anylock_t * lock |
| apr_anylock_t void * membuf |
| apr_anylock_t void apr_size_t memsize |
| apr_size_t reqsize |