![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
Simple list-based allocator. More...
Go to the source code of this file.
Functions | |
L4_BEGIN_DECLS void | l4la_free (l4la_free_t **first, void *block, l4_size_t size) |
Add free memory to memory pool. | |
void * | l4la_alloc (l4la_free_t **first, l4_size_t size, unsigned align) |
Allocate memory from pool. | |
void | l4la_dump (l4la_free_t **first) |
Show all list members. | |
void | l4la_init (l4la_free_t **first) |
Init memory pool. | |
l4_size_t | l4la_avail (l4la_free_t **first) |
Show available memory in pool. |
Simple list-based allocator.
Taken from the Fiasco kernel.
Definition in file list_alloc.h.
void * l4la_alloc | ( | l4la_free_t ** | first, |
l4_size_t | size, | ||
unsigned | align ) |
Allocate memory from pool.
first | list identifier |
size | length of memory block to allocate |
align | alignment |
References L4_CV.
l4_size_t l4la_avail | ( | l4la_free_t ** | first | ) |
void l4la_dump | ( | l4la_free_t ** | first | ) |
L4_BEGIN_DECLS void l4la_free | ( | l4la_free_t ** | first, |
void * | block, | ||
l4_size_t | size ) |
Add free memory to memory pool.
first | list identifier |
block | address of unused memory block |
size | size of memory block |
References L4_CV.
void l4la_init | ( | l4la_free_t ** | first | ) |