L4Re - L4 Runtime Environment
Kumem allocator utility

Kumem allocator utility C interface. More...

+ Collaboration diagram for Kumem allocator utility:

Functions

int l4re_util_kumem_alloc (l4_addr_t *mem, unsigned pages_order, l4_cap_idx_t task, l4_cap_idx_t regmgr) L4_NOTHROW
 Allocate state area. More...
 

Detailed Description

Kumem allocator utility C interface.

Function Documentation

◆ l4re_util_kumem_alloc()

int l4re_util_kumem_alloc ( l4_addr_t mem,
unsigned  pages_order,
l4_cap_idx_t  task,
l4_cap_idx_t  regmgr 
)

Allocate state area.

Return values
memPointer to memory that has been allocated.
pages_orderSize to allocate, in log2 pages.
Parameters
taskTask to use for allocation.
regmgrRegion manager to use for allocation.
Returns
0 for success, error code otherwise
Examples:
examples/sys/aliens/main.c.