linux_boot_params

Struct BootParams

Source
#[repr(C, packed(1))]
pub struct BootParams {
Show 35 fields pub screen_info: ScreenInfo, pub apm_bios_info: ApmBiosInfo, pub _pad2: [u8; 4], pub tboot_addr: u64, pub ist_info: IstInfo, pub acpi_rsdp_addr: u64, pub _pad3: [u8; 8], pub hd0_info: [u8; 16], pub hd1_info: [u8; 16], pub sys_desc_table: SysDescTable, pub olpc_ofw_header: OlpcOfwHeader, pub ext_ramdisk_image: u32, pub ext_ramdisk_size: u32, pub ext_cmd_line_ptr: u32, pub _pad4: [u8; 112], pub cc_blob_address: u32, pub edid_info: EdidInfo, pub efi_info: EfiInfo, pub alt_mem_k: u32, pub scratch: u32, pub e820_entries: u8, pub eddbuf_entries: u8, pub edd_mbr_sig_buf_entries: u8, pub kbd_status: u8, pub secure_boot: u8, pub _pad5: [u8; 2], pub sentinel: u8, pub _pad6: [u8; 1], pub hdr: SetupHeader, pub _pad7: [u8; 36], pub edd_mbr_sig_buffer: [u32; 16], pub e820_table: [BootE820Entry; 128], pub _pad8: [u8; 48], pub eddbuf: [EddInfo; 6], pub _pad9: [u8; 276],
}
Expand description

Linux 32/64-bit Boot Protocol parameter struct.

Originally defined in the linux source tree: linux/arch/x86/include/uapi/asm/bootparam.h

Fields§

§screen_info: ScreenInfo§apm_bios_info: ApmBiosInfo§_pad2: [u8; 4]§tboot_addr: u64§ist_info: IstInfo§acpi_rsdp_addr: u64§_pad3: [u8; 8]§hd0_info: [u8; 16]§hd1_info: [u8; 16]§sys_desc_table: SysDescTable§olpc_ofw_header: OlpcOfwHeader§ext_ramdisk_image: u32§ext_ramdisk_size: u32§ext_cmd_line_ptr: u32§_pad4: [u8; 112]§cc_blob_address: u32§edid_info: EdidInfo§efi_info: EfiInfo§alt_mem_k: u32§scratch: u32§e820_entries: u8§eddbuf_entries: u8§edd_mbr_sig_buf_entries: u8§kbd_status: u8§secure_boot: u8§_pad5: [u8; 2]§sentinel: u8§_pad6: [u8; 1]§hdr: SetupHeader§_pad7: [u8; 36]§edd_mbr_sig_buffer: [u32; 16]§e820_table: [BootE820Entry; 128]§_pad8: [u8; 48]§eddbuf: [EddInfo; 6]§_pad9: [u8; 276]

Trait Implementations§

Source§

impl Clone for BootParams

Source§

fn clone(&self) -> BootParams

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 BootParams

Source§

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

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

impl Copy for BootParams

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