MOS Source Code
|
Go to the source code of this file.
Functions | |
void | buddy_dump_all () |
Dump the state of the buddy allocator. | |
void | buddy_init (size_t max_nframes) |
Initialize the buddy allocator with the given maximum number of frames. | |
void | buddy_reserve_n (pfn_t pfn, size_t nframes) |
Reserve several frames at the given physical frame number. | |
phyframe_t * | buddy_alloc_n_exact (size_t nframes) |
Allocate nframes of contiguous physical memory. | |
void | buddy_free_n (pfn_t pfn, size_t nframes) |
Free nframes of contiguous physical memory. | |
void buddy_dump_all | ( | ) |
Dump the state of the buddy allocator.
Definition at line 301 of file buddy_core.c.
Referenced by pmm_dump_lists().
Initialize the buddy allocator with the given maximum number of frames.
max_nframes | The maximum number of frames that are addressable on the system. |
Definition at line 309 of file buddy_core.c.
Referenced by pmm_init().
Reserve several frames at the given physical frame number.
pfn | The physical frame number to reserve. |
nframes | The number of frames to reserve. |
Definition at line 323 of file buddy_core.c.
Referenced by pmm_reserve_frames().
phyframe_t * buddy_alloc_n_exact | ( | size_t | nframes | ) |
Allocate nframes of contiguous physical memory.
nframes | The number of frames to allocate. |
Definition at line 331 of file buddy_core.c.
Referenced by pmm_allocate_frames().
Free nframes of contiguous physical memory.
pfn | The physical frame number of the first frame in the contiguous block. |
nframes | The number of frames to free. |
Definition at line 370 of file buddy_core.c.
Referenced by pmm_free_frames().