GME
13
|
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 |
typedef apr_size_t apr_rmm_off_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 |
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 | ( | 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 void * membuf |
apr_anylock_t void apr_size_t memsize |