Enum bootloader::bootinfo::MemoryRegionType
source · #[repr(C)]pub enum MemoryRegionType {
Show 14 variants
Usable,
InUse,
Reserved,
AcpiReclaimable,
AcpiNvs,
BadMemory,
Kernel,
KernelStack,
PageTable,
Bootloader,
FrameZero,
Empty,
BootInfo,
Package,
// some variants omitted
}
Expand description
Represents possible types for memory regions.
Variants§
Usable
Unused memory, can be freely used by the kernel.
InUse
Memory that is already in use.
Reserved
Memory reserved by the hardware. Not usable.
AcpiReclaimable
ACPI reclaimable memory
AcpiNvs
ACPI NVS memory
BadMemory
Area containing bad memory
Kernel
Memory used for loading the kernel.
KernelStack
Memory used for the kernel stack.
PageTable
Memory used for creating page tables.
Bootloader
Memory used by the bootloader.
FrameZero
Frame at address zero.
(shouldn’t be used because it’s easy to make mistakes related to null pointers)
Empty
An empty region with size 0
BootInfo
Memory used for storing the boot information.
Package
Memory used for storing the supplied package
Trait Implementations§
source§impl Clone for MemoryRegionType
impl Clone for MemoryRegionType
source§fn clone(&self) -> MemoryRegionType
fn clone(&self) -> MemoryRegionType
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 moresource§impl Debug for MemoryRegionType
impl Debug for MemoryRegionType
source§impl PartialEq for MemoryRegionType
impl PartialEq for MemoryRegionType
source§fn eq(&self, other: &MemoryRegionType) -> bool
fn eq(&self, other: &MemoryRegionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MemoryRegionType
impl Eq 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