#include <region.h>
Static Public Member Functions | |
static void | init (Address begin, Address end) |
Initialize the region manager. | |
static Address | reserve_pages (size_t size, unsigned long alignment) |
Reserve an address region. | |
static void | return_pages (Address address, size_t size) |
Free an address region. | |
static void | debug_dump () |
Dump an overview of current allocations to the screen. |
The region manager is a module that keeps track of virtual-memory allocations in a predefined virtual-address region. It only allocates virtual addresses -- not physical memory. In other words, virtual-memory regions allocated using this module are not backed by physical memory; mapping in physical memory is the client's responsibility.
|
Dump an overview of current allocations to the screen.
|
|
Initialize the region manager. This function is called once at initialization.
|
|
Reserve an address region. This function only reserves the region -- it does not back it with physical memory.
|
|
Free an address region. This function only frees a reservation --- it does not flush the region itself.
|