Enum stivale_boot::v2::StivaleMemoryMapEntryType
source · [−]#[repr(u32)]
pub enum StivaleMemoryMapEntryType {
Usable,
Reserved,
AcpiReclaimable,
AcpiNvs,
BadMemory,
BootloaderReclaimable,
Kernel,
Framebuffer,
}
Expand description
The type of a memory map entry. The entries are guaranteed to be sorted by base address, lowest to highest.
Alignment
Usable and bootloader reclaimable entries are guaranteed to be 4096 byte aligned for both base and length. Usable and bootloader reclaimable entries are guaranteed not to overlap with any other entry.
Variants
Usable
Usable memory.
Reserved
Memory reserved by the system.
AcpiReclaimable
ACPI memory that can be reclaimed.
AcpiNvs
ACPI memory that cannot be reclaimed.
BadMemory
Memory marked as defective (bad RAM).
BootloaderReclaimable
Memory used by the bootloader that can be reclaimed after it’s not being used anymore.
Kernel
Memory containing the kernel and any modules.
Framebuffer
Memory containing the framebuffer.
Trait Implementations
sourceimpl Clone for StivaleMemoryMapEntryType
impl Clone for StivaleMemoryMapEntryType
sourcefn clone(&self) -> StivaleMemoryMapEntryType
fn clone(&self) -> StivaleMemoryMapEntryType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StivaleMemoryMapEntryType
impl Debug for StivaleMemoryMapEntryType
impl Copy for StivaleMemoryMapEntryType
impl StructuralPartialEq for StivaleMemoryMapEntryType
Auto Trait Implementations
impl RefUnwindSafe for StivaleMemoryMapEntryType
impl Send for StivaleMemoryMapEntryType
impl Sync for StivaleMemoryMapEntryType
impl Unpin for StivaleMemoryMapEntryType
impl UnwindSafe for StivaleMemoryMapEntryType
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