#include <frame.h>
#include <malloc.h>
#include <stdlib.h>
#include <x86/proc_reg.h>
Functions | |
void | frame_allocator_reserve (FrameAddress start, FrameAddress end) |
Reserve frame from the allocator. | |
void | frame_allocator_fill (FrameAddress start, FrameAddress end) |
int | frame_allocator_initialize (FrameAddress start, FrameAddress end) |
Initializes the frame allocator. | |
Frame * | frame_allocator_split (Frame *frame, FrameAlignment request, Frame *start, Frame *end) |
Frame * | frame_allocator_attempt_split (FrameAlignment request, Frame *start, Frame *end) |
Frame * | frame_allocator_coalesce (Frame *frame, FrameAlignment request, Frame *start, Frame *end) |
Frame * | frame_allocator_attempt_coalesce (FrameAlignment request, Frame *start, Frame *end) |
Frame * | frame_allocate_within (FrameAlignment alignment, FrameAddress start, FrameAddress end) |
Allocate a frame within a memory region. | |
Frame * | frame_allocate (FrameAlignment alignment) |
Allocate a frame. | |
void | frame_free (Frame *frame) |
Free a frame. | |
unsigned int | frame_availability (void) |
The number of available frames for allocation. | |
Variables | |
FrameAllocator | frameAllocator |
Hassaan Moin Khan (hkhan)
|
Allocate a frame. Allocate a frame from anywhere within the managed physical memory.
|
|
Allocate a frame within a memory region. Allocates a frame of the specified alignment within a given region of the physical address space.
|
|
Initializes the frame allocator. Initialize the frame allocator to manage a specified region of physical memory.
|
|
Reserve frame from the allocator. Reserves page frames from the allocator so that they may not be used.
|
|
The number of available frames for allocation. Return the number of frames available for allocation, if allocated at the least alignment possible.
|
|
Free a frame. Return the frame to the free list
|