morpheus_bootloader::boot::boot_params

Struct SetupHeader

Source
#[repr(C, packed(1))]
pub struct SetupHeader {
Show 39 fields pub setup_sects: u8, root_flags: u16, syssize: u32, ram_size: u16, vid_mode: u16, root_dev: u16, boot_flag: u16, jump: u16, pub header: u32, pub version: u16, realmode_swtch: u32, start_sys_seg: u16, kernel_version: u16, type_of_loader: u8, loadflags: u8, setup_move_size: u16, pub code32_start: u32, ramdisk_image: u32, ramdisk_size: u32, bootsect_kludge: u32, heap_end_ptr: u16, ext_loader_ver: u8, ext_loader_type: u8, cmd_line_ptr: u32, pub initrd_addr_max: u32, pub kernel_alignment: u32, pub relocatable_kernel: u8, min_alignment: u8, pub xloadflags: u16, pub cmdline_size: u32, hardware_subarch: u32, hardware_subarch_data: u64, payload_offset: u32, payload_length: u32, setup_data: u64, pub pref_address: u64, pub init_size: u32, pub handover_offset: u32, pub kernel_info_offset: u32,
}

Fields§

§setup_sects: u8§root_flags: u16§syssize: u32§ram_size: u16§vid_mode: u16§root_dev: u16§boot_flag: u16§jump: u16§header: u32§version: u16§realmode_swtch: u32§start_sys_seg: u16§kernel_version: u16§type_of_loader: u8§loadflags: u8§setup_move_size: u16§code32_start: u32§ramdisk_image: u32§ramdisk_size: u32§bootsect_kludge: u32§heap_end_ptr: u16§ext_loader_ver: u8§ext_loader_type: u8§cmd_line_ptr: u32§initrd_addr_max: u32§kernel_alignment: u32§relocatable_kernel: u8§min_alignment: u8§xloadflags: u16§cmdline_size: u32§hardware_subarch: u32§hardware_subarch_data: u64§payload_offset: u32§payload_length: u32§setup_data: u64§pref_address: u64§init_size: u32§handover_offset: u32§kernel_info_offset: u32

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

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.