pub enum MemoryRegionType {
Usable,
Reserved,
SoftReserved,
AcpiData,
AcpiNvs,
Unusable,
Persistent,
Unknown,
NonAcpi(String),
}
Expand description
The types of memory address ranges distinguished by the kernel.
These largely correspond to the ACPI Address Range Types as defined in
the kernel’s e820_type
enum (with some minor changes).
UEFI provides even more fine-grained Memory Types, but the kernel maps
those to the basic ACPI types in do_add_efi_memmap
(according to the
specified UEFI–ACPI Mapping).
Variants§
Usable
Reserved
SoftReserved
AcpiData
AcpiNvs
Unusable
Persistent
Unknown
An E820 type not known to the kernel.
NonAcpi(String)
Any type not part of the ACPI specification, such as an MMIO range.
Trait Implementations§
Source§impl Debug for MemoryRegionType
impl Debug for MemoryRegionType
Source§impl Display for MemoryRegionType
impl Display for MemoryRegionType
Source§impl FromStr for MemoryRegionType
impl FromStr for MemoryRegionType
Source§impl PartialEq for MemoryRegionType
impl PartialEq for MemoryRegionType
impl StructuralPartialEq for MemoryRegionType
Auto Trait Implementations§
impl Freeze for MemoryRegionType
impl RefUnwindSafe for MemoryRegionType
impl Send for MemoryRegionType
impl Sync for MemoryRegionType
impl Unpin for MemoryRegionType
impl UnwindSafe for MemoryRegionType
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