#[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
impl Clone for BootParams
Source§fn clone(&self) -> BootParams
fn clone(&self) -> BootParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BootParams
impl Debug for BootParams
impl Copy for BootParams
Auto Trait Implementations§
impl Freeze for BootParams
impl RefUnwindSafe for BootParams
impl Send for BootParams
impl Sync for BootParams
impl Unpin for BootParams
impl UnwindSafe for BootParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)