#[repr(C)]pub struct Info {Show 16 fields
pub flags: Flags,
mem: Memory,
boot_device: BootDevice,
cmdline: RefStr,
mods_count: u32,
mods_addr: *const Module,
symbols: SymbolsUnion,
mmap_length: u32,
mmap_addr: *const MemoryEntry,
drives_length: u32,
drives_addr: u32,
_config_table: u32,
boot_loader_name: RefStr,
_apm_table: u32,
vbe: VBETable,
framebuffer: FramebufferTable,
}
Expand description
Representation of Multiboot Information according to specification.
Fields§
§flags: Flags
§mem: Memory
§boot_device: BootDevice
§cmdline: RefStr
§mods_count: u32
§mods_addr: *const Module
§symbols: SymbolsUnion
§mmap_length: u32
§mmap_addr: *const MemoryEntry
§drives_length: u32
§drives_addr: u32
§_config_table: u32
§boot_loader_name: RefStr
§_apm_table: u32
§vbe: VBETable
§framebuffer: FramebufferTable
Implementations§
source§impl Info
impl Info
sourcepub unsafe fn from_ptr(ptr: *const u8) -> &'static Self
pub unsafe fn from_ptr(ptr: *const u8) -> &'static Self
Parses the Multiboot information structures
sourcepub fn boot_device(&self) -> Option<&BootDevice>
pub fn boot_device(&self) -> Option<&BootDevice>
Indicates which bios disk device the boot loader loaded the OS image from.
sourcepub fn boot_loader_name(&self) -> Option<&str>
pub fn boot_loader_name(&self) -> Option<&str>
Get the name of the bootloader.
sourcepub fn memory_map(&self) -> Option<MemoryMapIter<'_>>
pub fn memory_map(&self) -> Option<MemoryMapIter<'_>>
Discover all memory regions in the multiboot memory map.
sourcepub fn find_highest_address(&self) -> u32
pub fn find_highest_address(&self) -> u32
Return end address of multiboot image.
This function can be used to figure out a (hopefully) safe offset in the first region of memory to start using as free memory.
sourcepub fn framebuffer(&self) -> Option<&FramebufferTable>
pub fn framebuffer(&self) -> Option<&FramebufferTable>
Contains the information about the framebuffer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl !Send for Info
impl !Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.