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
size_t next
size_t limit
void * memory [0]
struct MemChunknext_chunk
void * memory [0]

Field Documentation

struct MemChunk* MemChunk::next_chunk [read]

Pointer to next allocated chunk

Definition at line 108 of file veil_datatypes.h.

size_t MemChunk::next

Offset, within this chunk, of 1st free byte

Definition at line 109 of file veil_datatypes.h.

size_t MemChunk::limit

Offset, of 1st byte beyond chunk

Definition at line 111 of file veil_datatypes.h.

void* MemChunk::memory[0]

The rest of the chunk, from which memory is allocated

Definition at line 112 of file veil_datatypes.h.

struct MemChunk* MemChunk::next_chunk [read]

Pointer to next allocated chunk

Definition at line 39 of file veil_shmem.h.

void* MemChunk::memory[0]

The rest of the chunk, from which memory is allocated

Definition at line 43 of file veil_shmem.h.


The documentation for this struct was generated from the following files:
Generated on Tue Mar 11 10:08:39 2008 for Veil by  doxygen 1.5.4