Enum seed::boot_info::MemoryType

source ·
#[repr(C)]
pub enum MemoryType { Conventional = 0, AcpiReclaimable = 1, FdtReclaimable = 2, LoadedImage = 3, KernelPageTables = 4, KernelHeap = 5, Loader = 6, BootInfo = 7, }

Variants§

§

Conventional = 0

Memory that can be used freely by the kernel.

§

AcpiReclaimable = 1

Memory that contains ACPI tables. After the OS has finished with them, this may be treated as conventional memory.

§

FdtReclaimable = 2

Memory that contains the Flattened Device Tree (FDT). After the OS has finished with the device tree, this memory can be treated as conventional.

§

LoadedImage = 3

Memory occupied by images that the loader has been asked to load from disk. If the kernel can determine that an image is no longer needed, it may use this memory.

§

KernelPageTables = 4

Memory that is occupied by page tables created by the loader for the kernel. If the kernel can determine that it no longer needs part of this mapped, it may use this memory.

§

KernelHeap = 5

Memory that has been mapped for the kernel heap.

§

Loader = 6

Memory that the loader maps into the kernel address space. It may be reclaimed by the kernel immediately, and the kernel should also unmap it from its address space. Seed will only produce these entries if the implementation needs to keep itself mapped - otherwise this memory may be marked Conventional.

§

BootInfo = 7

Memory that is occupied by the boot info constructed by the loader for the kernel. Contains the BootInfo structure, and all the structures that are referenced by it. After the kernel has finished with this data, it may use this memory.

Trait Implementations§

source§

impl Clone for MemoryType

source§

fn clone(&self) -> MemoryType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MemoryType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for MemoryType

source§

fn default() -> MemoryType

Returns the “default value” for a type. Read more
source§

impl PartialEq for MemoryType

source§

fn eq(&self, other: &MemoryType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for MemoryType

source§

impl Eq for MemoryType

source§

impl StructuralPartialEq for MemoryType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.