|
Barrelfish
|
RAM allocator code (client-side) More...
Functions | |
| errval_t | ram_alloc (struct capref *ret, uint8_t size_bits) |
| Allocates memory in the form of a RAM capability. More... | |
| void | ram_alloc_init (void) |
| Initialize the dispatcher specific state of ram_alloc. | |
| 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... | |
RAM allocator code (client-side)
| errval_t ram_alloc | ( | struct capref * | ret, |
| uint8_t | size_bits | ||
| ) |
Allocates memory in the form of a RAM capability.
| ret | Pointer to capref struct, filled-in with allocated cap location |
| size_bits | Amount 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.
1.8.11