Introduction   API Reference   Examples   Index  

Memory Allocation
[Slab Memory Allocator API]

Memory allocation / deallocation. More...

Functions

L4_CV void * l4slab_alloc (l4slab_cache_t *cache)
 Allocate object.
L4_CV void l4slab_free (l4slab_cache_t *cache, void *objp)
 Release object.

Detailed Description

Memory allocation / deallocation.


Function Documentation

L4_CV void* l4slab_alloc ( l4slab_cache_t cache  ) 

Allocate object.

Parameters:
cache Cache descriptor
Returns:
pointer to object, NULL if allocation failed.

L4_CV void l4slab_free ( l4slab_cache_t cache,
void *  objp 
)

Release object.

Parameters:
cache Cache descriptor
objp Pointer to object


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