Module mem

Source
Expand description

This module provides access to the global memory allocator.

Modules§

alloc
This module provides a simple allocator. One implementation is the BestFitAllocator, which uses the best fit strategy.
array
This module implements static and dynamic arrays for in-kernel use.
boxed
This module provides a simple heap-allocated memory block for in-kernel use.
heap
This module provides a binary heap implementation.
pool
This module provides a pool allocator implementation.
queue
This module provides a queue implementation.

Functions§

align_up
Aligns a size to be a multiple of the u128 alignment.
free
Free a memory block.
init_memory
Initialize the memory allocator.
malloc
Allocate a memory block. Normally Box or SizedPool should be used instead of this function.