Struct seed_riscv::memory::MemoryRegions
source · pub struct MemoryRegions(ArrayVec<Region, MAX_REGIONS>);
Expand description
The region map provides a high-level view of the physical memory space, containing large regions of memory that
are either usable, or reserved for one of a variety of reasons. This information is static: we don’t allocate
out of the regions directly - a physical memory allocator is provided by MemoryManager
.
Tuple Fields§
§0: ArrayVec<Region, MAX_REGIONS>
Implementations§
source§impl MemoryRegions
impl MemoryRegions
pub fn new(fdt: &Fdt<'_>, fdt_address: PAddr) -> MemoryRegions
sourcepub fn add_region(&mut self, region: Region)
pub fn add_region(&mut self, region: Region)
Add a region of memory to the manager, merging and handling intersecting regions as needed.
Trait Implementations§
source§impl Clone for MemoryRegions
impl Clone for MemoryRegions
source§fn clone(&self) -> MemoryRegions
fn clone(&self) -> MemoryRegions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MemoryRegions
impl RefUnwindSafe for MemoryRegions
impl Send for MemoryRegions
impl Sync for MemoryRegions
impl Unpin for MemoryRegions
impl UnwindSafe for MemoryRegions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more