#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.