memarea_chunk_t Struct Reference


Data Fields

struct memarea_chunk_tnext_chunk
size_t mem_size
char * next_mem
union {
   char   mem [1]
   void *   _void_for_alignment
u

Detailed Description

Implements part of a memarea. New memory is carved off from chunk->mem in increasing order until a request is too big, at which point a new chunk is allocated.

Field Documentation

How much RAM is available in u.mem, total?

Referenced by alloc_chunk(), memarea_alloc(), memarea_assert_ok(), and memarea_get_stats().

Next position in u.mem to allocate data at. If it's greater than or equal to mem+mem_size, this chunk is full.

Referenced by alloc_chunk(), chunk_free_unchecked(), memarea_alloc(), memarea_assert_ok(), memarea_clear(), and memarea_get_stats().

Dummy; used to make sure mem is aligned.


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:13 2010 for tor by  doxygen 1.5.6