MemChunk Struct Reference

#include <veil_datatypes.h>

Collaboration diagram for MemChunk:

Collaboration graph

Detailed Description

Chunks provide a linked list of dynamically allocated shared memory segments, with the most recently allocated chunk at the tail.

Shmalloc allocates space from this list of chunks, creating new chunks as needed up to MAX_ALLOWED_SHMEM.

Definition at line 107 of file veil_datatypes.h.


Data Fields

struct MemChunknext_chunk
 Pointer to next allocated chunk.
size_t next
 Offset, within this chunk, of 1st free byte.
size_t limit
 Offset, of 1st byte beyond chunk.
void * memory [0]
 The rest of the chunk, from which memory is allocated.

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

Generated on Fri Mar 12 08:38:47 2010 for Veil by  doxygen 1.5.6