Struct multiboot2::MemoryMapTag
source · [−]#[repr(C)]pub struct MemoryMapTag { /* private fields */ }
Expand description
This tag provides an initial host memory map.
The map provided is guaranteed to list all standard RAM that should be available for normal use. This type however includes the regions occupied by kernel, mbi, segments and modules. Kernel must take care not to overwrite these regions.
This tag may not be provided by some boot loaders on EFI platforms if EFI boot services are enabled and available for the loaded image (The EFI boot services tag may exist in the Multiboot2 boot information structure).
Implementations
sourceimpl MemoryMapTag
impl MemoryMapTag
sourcepub fn memory_areas(&self) -> impl Iterator<Item = &MemoryArea>
pub fn memory_areas(&self) -> impl Iterator<Item = &MemoryArea>
Return an iterator over all AVAILABLE marked memory areas.
sourcepub fn all_memory_areas(&self) -> impl Iterator<Item = &MemoryArea>
pub fn all_memory_areas(&self) -> impl Iterator<Item = &MemoryArea>
Return an iterator over all marked memory areas.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MemoryMapTag
impl Send for MemoryMapTag
impl Sync for MemoryMapTag
impl Unpin for MemoryMapTag
impl UnwindSafe for MemoryMapTag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more