[−][src]Function memory_manager::primitives::aligned_allocate_chunk
pub unsafe fn aligned_allocate_chunk(
alignment: usize,
size: usize,
protection: BitFlags<Protection>
) -> Result<*mut c_void>
Allocate an aligned memory chunk with the given alignment, size and protection flags.
The size is rounded up to a multiple of the alignment.
Panics
The alignment is asserted to be a multiple of PAGE_SIZE
AND a power of 2.