EGmemSlabPool_t Struct Reference
[EGmemSlab]

#include <eg_memslab.h>

Collaboration diagram for EGmemSlabPool_t:

Collaboration graph
[legend]

Detailed Description

structure used to store a slab memory pool
Examples:

eg_memslab.ex.c.

Definition at line 309 of file eg_memslab.h.

Data Fields

unsigned int c_color:10
EGconstructor_f constr
EGdestructor_f dest
unsigned int elem_sz:10
EGeList_t empty
EGeList_t full
EGeList_t half
unsigned int max_color:10
unsigned int n_elem:10
unsigned int unused1:2
unsigned int unused2:22


Field Documentation

unsigned int EGmemSlabPool_t::c_color
 

Last used color while creating slabs.

Definition at line 319 of file eg_memslab.h.

EGconstructor_f EGmemSlabPool_t::constr
 

Constructor for the local elements

Definition at line 314 of file eg_memslab.h.

EGdestructor_f EGmemSlabPool_t::dest
 

Destructor for the local elements

Definition at line 315 of file eg_memslab.h.

unsigned int EGmemSlabPool_t::elem_sz
 

Size of the elements in the slab, including extra space for pointer to next.

Definition at line 316 of file eg_memslab.h.

EGeList_t EGmemSlabPool_t::empty
 

Head of the list for non used slabs

Definition at line 312 of file eg_memslab.h.

EGeList_t EGmemSlabPool_t::full
 

Head of the list for fully used slabs

Definition at line 313 of file eg_memslab.h.

EGeList_t EGmemSlabPool_t::half
 

Head of the list for half-full slabs

Definition at line 311 of file eg_memslab.h.

unsigned int EGmemSlabPool_t::max_color
 

Maximum valid value for colors in this pool

Definition at line 321 of file eg_memslab.h.

unsigned int EGmemSlabPool_t::n_elem
 

Total number of elements in the slab

Definition at line 318 of file eg_memslab.h.

unsigned int EGmemSlabPool_t::unused1
 

Padding for unused bits

Definition at line 320 of file eg_memslab.h.

unsigned int EGmemSlabPool_t::unused2
 

Padding for unused space

Definition at line 331 of file eg_memslab.h.


The documentation for this struct was generated from the following file:
Generated on Mon Jan 30 08:55:10 2006 for EGlib by  doxygen 1.4.5