[][src]Module memory_manager::primitives

Memory allocation primitives.

Enums

MMapError

Common errors from mmap.

Protection

Memory protection flags.

Functions

aligned_allocate_chunk

Allocate an aligned memory chunk with the given alignment, size and protection flags.

deallocate_chunk

Deallocate a memory chunk.

get_minimum_alignment

Get the minimum alignment of memory chunks. On UNIX-like systems it is the same as PAGE_SIZE.

get_page_size

Get the PAGE_SIZE. This function is cached.

Type Definitions

Result

Memory allocation results.