PageManager$allocate_virtual_area function <nucleus/kernel.h>

The PageManager$allocate_virtual_area function allocates a region of kernel virtual memory of the requested size. There is no way to release this memory back to the kernel, so it must be used for permanent data structures such as memory heaps.

Syntax

void *
PageManager$allocate_virtual_area(
	unsigned int pages
);

Parameters

pages

The number of pages the virtual area must contain.

Return value

A pointer to the start of the reserved virtual area.