seed::boot_info

Enum 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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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.