Introduction   API Reference   Examples   Index  

l4slab_cache Struct Reference

#include <slab.h>


Data Fields

l4_size_t obj_size
 size of cache objects
l4_size_t slab_size
 size of one slab
int num_objs
 number of objects per slab
int num_slabs
 number of slabs in cache
int num_free
 number of unused slabs
unsigned int max_free
 max. allowed unused slabs
l4slab_slab_tslabs_full
 list of completely used slabs
l4slab_slab_tslabs_part
 list of partially used slabs
l4slab_slab_tslabs_free
 list of unused slabs
l4slab_grow_fn_t grow_fn
 cache grow callback
l4slab_release_fn_t release_fn
 slab release callback
void * data
 application data pointer


Detailed Description

Slab cache descriptor

Definition at line 83 of file slab.h.


Field Documentation

size of cache objects

Definition at line 85 of file slab.h.

size of one slab

Definition at line 86 of file slab.h.

number of objects per slab

Definition at line 87 of file slab.h.

number of slabs in cache

Definition at line 88 of file slab.h.

number of unused slabs

Definition at line 89 of file slab.h.

unsigned int l4slab_cache::max_free

max. allowed unused slabs

Definition at line 90 of file slab.h.

list of completely used slabs

Definition at line 92 of file slab.h.

list of partially used slabs

Definition at line 93 of file slab.h.

list of unused slabs

Definition at line 94 of file slab.h.

cache grow callback

Definition at line 96 of file slab.h.

slab release callback

Definition at line 97 of file slab.h.

application data pointer

Definition at line 99 of file slab.h.


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

Slab Memory Allocator Reference Manual, written by Lars Reuther  © 2000-2003