16 #ifndef __UTIL_INCLUDE_ALLOC_H_ 17 #define __UTIL_INCLUDE_ALLOC_H_ 18 #include <l4/sys/l4int.h> 25 int base, count, next_elem;
29 #define L4UTIL_ALLOC_BITS_SIZE (8 * sizeof(l4_umword_t)) 31 L4_CV l4util_alloc_t *l4util_alloc_init(
int count,
int base);
32 L4_CV int l4util_alloc_avail(l4util_alloc_t *alloc,
int elem);
33 L4_CV int l4util_alloc_occupy(l4util_alloc_t *alloc,
int elem);
34 L4_CV int l4util_alloc_alloc(l4util_alloc_t *alloc);
35 L4_CV int l4util_alloc_free(l4util_alloc_t *alloc,
int elem);
#define EXTERN_C_END
End section with C types and functions.
bit manipulation functions
L4 compiler related defines.
unsigned long l4_umword_t
Unsigned machine word.
#define EXTERN_C_BEGIN
Start section with C types and functions.
#define L4_CV
Define calling convention.