Struct stivale_boot::v1::StivaleStruct [−][src]
#[repr(C)]pub struct StivaleStruct {Show 21 fields
pub command_line: u64,
pub memory_map_array: [StivaleMemoryMapEntry; 0],
pub memory_map_len: u64,
pub framebuffer_addr: u64,
pub framebuffer_pitch: u16,
pub framebuffer_width: u16,
pub framebuffer_height: u16,
pub framebuffer_bpp: u16,
pub rsdp_adddres: u64,
pub module_len: u64,
pub modules: [StivaleModule; 0],
pub unix_epoch: u64,
pub flags: u64,
pub red_mask_size: u8,
pub red_mask_shift: u8,
pub green_mask_size: u8,
pub green_mask_shift: u8,
pub blue_mask_size: u8,
pub blue_mask_shift: u8,
pub smbios_entry_32: u64,
pub smbios_entry_64: u64,
// some fields omitted
}
Fields
command_line: u64
Address of the null-terminated command line.
memory_map_array: [StivaleMemoryMapEntry; 0]
Pointer to the memory map array.
memory_map_len: u64
Length of the memory map entries.
framebuffer_addr: u64
Address of the framebuffer if avaliable else its set to zero.
framebuffer_pitch: u16
The framebuffer pitch in bytes.
framebuffer_width: u16
Width of the framebuffer in pixels.
framebuffer_height: u16
Height of the framebuffer in pixels.
framebuffer_bpp: u16
The framebuffer bits per pixels.
rsdp_adddres: u64
Address of the RSDP ACPI structure.
module_len: u64
The length of modules that the stivale bootloader loaded according to the config.
modules: [StivaleModule; 0]
Pointer to the modules array.
unix_epoch: u64
UNIX epoch at boot, which is read from system RTC.
flags: u64
red_mask_size: u8
Size of the red mask in RGB.
red_mask_shift: u8
Shift of the red mask in RGB.
green_mask_size: u8
Size of the green mask in RGB.
green_mask_shift: u8
Shift of the green mask in RGB.
blue_mask_size: u8
Size of the blue mask in RGB.
blue_mask_shift: u8
Shift of the blue mask in RGB.
smbios_entry_32: u64
32-bit SMBIOS entry point address. Set to 0 if unavailable.
smbios_entry_64: u64
64-bit SMBIOS entry point address. Set to 0 if unavailable.
Implementations
Return’s the modules array pointer as a rust slice.
pub fn modules_iter(&self) -> StivaleModuleIter<'_>ⓘNotable traits for StivaleModuleIter<'a>impl<'a> Iterator for StivaleModuleIter<'a> type Item = &'a StivaleModule;
pub fn modules_iter(&self) -> StivaleModuleIter<'_>ⓘNotable traits for StivaleModuleIter<'a>impl<'a> Iterator for StivaleModuleIter<'a> type Item = &'a StivaleModule;
impl<'a> Iterator for StivaleModuleIter<'a> type Item = &'a StivaleModule;
Returns an iterator over all the modules that were loaded.
Return’s memory map entries pointer as a rust slice.
pub fn memory_map_iter(&self) -> StivaleMemoryMapIter<'_>ⓘNotable traits for StivaleMemoryMapIter<'a>impl<'a> Iterator for StivaleMemoryMapIter<'a> type Item = &'a StivaleMemoryMapEntry;
pub fn memory_map_iter(&self) -> StivaleMemoryMapIter<'_>ⓘNotable traits for StivaleMemoryMapIter<'a>impl<'a> Iterator for StivaleMemoryMapIter<'a> type Item = &'a StivaleMemoryMapEntry;
impl<'a> Iterator for StivaleMemoryMapIter<'a> type Item = &'a StivaleMemoryMapEntry;
Returns an iterator over all the memory regions.