Barrelfish
Functions
ram_alloc.h File Reference

RAM allocator code (client-side) definitions. More...

Functions

errval_t ram_alloc (struct capref *retcap, uint8_t size_bits)
 Allocates memory in the form of a RAM capability. More...
 
errval_t ram_alloc_set (ram_alloc_func_t local_allocator)
 Set ram_alloc to the default ram_alloc_remote or to a given function. More...
 
void ram_alloc_init (void)
 Initialize the dispatcher specific state of ram_alloc.
 

Detailed Description

RAM allocator code (client-side) definitions.

Function Documentation

errval_t ram_alloc ( struct capref ret,
uint8_t  size_bits 
)

Allocates memory in the form of a RAM capability.

Parameters
retPointer to capref struct, filled-in with allocated cap location
size_bitsAmount of RAM to allocate, as a power of two slot used for the cap in #ret, if any
errval_t ram_alloc_set ( ram_alloc_func_t  local_allocator)

Set ram_alloc to the default ram_alloc_remote or to a given function.

If local_allocator is NULL, it will be initialized to the default remote allocator.