ArvernOS
|
Macros | |
#define | PAGE_SIZE 4096 |
The default page size. | |
Functions | |
void | frame_init () |
opt_uint64_t | frame_allocate () |
void | frame_deallocate (frame_number_t frame_number) |
frame_number_t | frame_containing_address (uint64_t physical_address) |
uint64_t | frame_start_address (frame_number_t frame_number) |
uint64_t | frame_get_used_count () |
uint64_t | frame_get_max_count () |
opt_uint64_t frame_allocate | ( | ) |
Allocates a frame and returns its physical address.
frame_number_t frame_containing_address | ( | uint64_t | physical_address | ) |
Returns the frame number given a physical address.
physical_address | a physical address (frame) |
void frame_deallocate | ( | frame_number_t | frame_number | ) |
Deallocates (free) a frame.
frame_number | a frame number (not an address) |
uint64_t frame_get_max_count | ( | ) |
Returns the number of frames that the system can possibly allocate.
uint64_t frame_get_used_count | ( | ) |
Returns the number of frames currently used.
void frame_init | ( | ) |
Initializes the frame allocator (physical memory management).
uint64_t frame_start_address | ( | frame_number_t | frame_number | ) |
Returns the physical start address of a frame.
frame_number | a frame number (not an address) |