![]() |
MOS Source Code
|
#include "mos/mm/physical/pmm.hpp"#include "mos/assert.hpp"#include "mos/mm/mm.hpp"#include "mos/mm/physical/buddy.hpp"#include "mos/platform/platform.hpp"#include "mos/syslog/printk.hpp"#include <mos_stdlib.hpp>#include <mos_string.hpp>Go to the source code of this file.
Functions | |
| void | pmm_init (void) |
| void | pmm_dump_lists (void) |
| Dump the physical memory manager's state, (i.e. the free list and the allocated list). | |
| MOS_PANIC_HOOK_FEAT (pmm, pmm_dump_lists, "dump physical allocator lists") | |
| phyframe_t * | pmm_allocate_frames (size_t n_frames, pmm_allocation_flags_t flags) |
| Allocate n_frames of contiguous physical memory. | |
| void | pmm_free_frames (phyframe_t *start_frame, size_t n_pages) |
| pfn_t | pmm_reserve_frames (pfn_t pfn_start, size_t npages) |
| Mark a range of physical memory as reserved. | |
| pmm_region_t * | pmm_find_reserved_region (ptr_t needle) |
| Find a region in the physical memory manager. | |
| phyframe_t * | _pmm_ref_phyframes (phyframe_t *frame, size_t n_pages) |
| void | _pmm_unref_phyframes (phyframe_t *frame, size_t n_pages) |
Variables | |
| phyframe_t * | phyframes = NULL |
| size_t | pmm_total_frames = 0 |
| size_t | pmm_allocated_frames = 0 |
| size_t | pmm_reserved_frames = 0 |
| MOS_PANIC_HOOK_FEAT | ( | pmm | , |
| pmm_dump_lists | , | ||
| "dump physical allocator lists" | ) |