Go to the source code of this file.
Defines | |
| #define | ALLOC_SIZE (4 * L4_PAGESIZE) |
Functions | |
| void * | ddekit_simple_malloc (unsigned size) |
| Allocate memory block via simple allocator. | |
| void | ddekit_simple_free (void *p) |
| Free memory block via simple allocator. | |
Variables | |
| static l4la_free_t * | malloc_pool |
| static l4lock_t | malloc_lock = L4LOCK_UNLOCKED |
| void ddekit_simple_free | ( | void * | p | ) |
| void* ddekit_simple_malloc | ( | unsigned | size | ) |
Allocate memory block via simple allocator.
| size | block size |
Each chunk stores its size in the first word for free() to work.
l4lock_t malloc_lock = L4LOCK_UNLOCKED [static] |
l4la_free_t* malloc_pool [static] |
1.5.6