Main Page | Modules | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

Internal Memory Allocation


Data Structures

struct  apr_memnode_t

Defines

#define APR_MEMNODE_T_SIZE   APR_ALIGN_DEFAULT(sizeof(apr_memnode_t))
#define APR_ALLOCATOR_MAX_FREE_UNLIMITED   0

Typedefs

typedef apr_allocator_t apr_allocator_t
typedef apr_memnode_t apr_memnode_t

Functions

 APR_DECLARE (apr_status_t) apr_allocator_create(apr_allocator_t **allocator)
 APR_DECLARE (void) apr_allocator_destroy(apr_allocator_t *allocator)
 APR_DECLARE (apr_memnode_t *) apr_allocator_alloc(apr_allocator_t *allocator
 APR_DECLARE (apr_pool_t *) apr_allocator_owner_get(apr_allocator_t *allocator)

Variables

apr_size_t size
apr_memnode_tmemnode
apr_pool_tpool
apr_pool_tpool
dav_buffer apr_size_t size

Define Documentation

#define APR_ALLOCATOR_MAX_FREE_UNLIMITED   0
 

Symbolic constants

Definition at line 59 of file apr_allocator.h.

Referenced by allocator_free(), APR_DECLARE(), beos_pre_config(), leader_pre_config(), mpmt_os2_pre_config(), netware_pre_config(), perchild_pre_config(), prefork_pre_config(), and worker_pre_config().

#define APR_MEMNODE_T_SIZE   APR_ALIGN_DEFAULT(sizeof(apr_memnode_t))
 

The base size of a memory node - aligned.

Definition at line 56 of file apr_allocator.h.

Referenced by allocator_alloc().


Typedef Documentation

typedef struct apr_allocator_t apr_allocator_t
 

the allocator structure

Definition at line 41 of file apr_allocator.h.

typedef struct apr_memnode_t apr_memnode_t
 

the structure which holds information about the allocation

Definition at line 43 of file apr_allocator.h.


Function Documentation

APR_DECLARE apr_pool_t  ) 
 

Get the current owner of the allocator

Parameters:
allocator The allocator to get the owner from

Definition at line 1751 of file apr_pools.c.

References NULL.

APR_DECLARE apr_memnode_t  ) 
 

Allocate a block of mem from the allocator

Parameters:
allocator The allocator to allocate from
size The size of the mem to allocate (excluding the memnode structure)

APR_DECLARE void   ) 
 

Register an other_child -- a child associated to its registered maintence callback. This callback is invoked when the process dies, is disconnected or disappears.

Parameters:
proc The child process to register.
maintenance maintenance is a function that is invoked with a reason and the data pointer passed here.
data Opaque context data passed to the maintenance function.
write_fd An fd that is probed for writing. If it is ever unwritable then the maintenance is invoked with reason OC_REASON_UNWRITABLE.
p The pool to use for allocating memory.
Bug:
write_fd duplicates the proc->out stream, it's really redundant and should be replaced in the APR 1.0 API with a bitflag of which proc->in/out/err handles should be health checked.

no platform currently tests the pipes health.

Definition at line 131 of file apr_pools.c.

APR_DECLARE apr_status_t   ) 
 

convert an ansi time_t to an apr_time_t

Parameters:
result the resulting apr_time_t
input the time_t to convert

Definition at line 24 of file netware/dso.c.


Variable Documentation

apr_memnode_t* memnode
 

Definition at line 91 of file apr_allocator.h.

Referenced by APU_DECLARE_NONSTD().

const char apr_size_t apr_pool_t * pool
 

Definition at line 1383 of file apr_buckets.h.

Referenced by main(), ssl_config_global_create(), and storeEntityValue().

apr_pool_t* pool
 

Definition at line 111 of file apr_allocator.h.

apr_size_t size
 

Definition at line 366 of file apr_pools.h.

Referenced by ap_proxy_ftp_handler(), APR_DECLARE(), cache_pq_dump(), cache_save_filter(), elem_size(), entry_data_buf(), entry_size(), hashTableDestroy(), local_compare(), lookup(), main(), output_directories(), pcre_compile(), pcre_get_substring_list(), set_shmem_size(), ssl_expr_yyparse(), and text_size().

apr_size_t size
 

Definition at line 134 of file apr_allocator.h.