L4Re Operating System Framework
Interface and Usage Documentation
|
Simple list-based allocator. More...
Go to the source code of this file.
Functions | |
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 |
l4_size_t l4la_avail | ( | l4la_free_t ** | first | ) |
Show available memory in pool.
first | list identifier |
void l4la_dump | ( | l4la_free_t ** | first | ) |
Show all list members.
first | list identifier |
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 |
void l4la_init | ( | l4la_free_t ** | first | ) |
Init memory pool.
first | list identifier |