#[repr(C, packed)]
pub struct setup_header {
Show 39 fields pub setup_sects: __u8, pub root_flags: __u16, pub syssize: __u32, pub ram_size: __u16, pub vid_mode: __u16, pub root_dev: __u16, pub boot_flag: __u16, pub jump: __u16, pub header: __u32, pub version: __u16, pub realmode_swtch: __u32, pub start_sys_seg: __u16, pub kernel_version: __u16, pub type_of_loader: __u8, pub loadflags: __u8, pub setup_move_size: __u16, pub code32_start: __u32, pub ramdisk_image: __u32, pub ramdisk_size: __u32, pub bootsect_kludge: __u32, pub heap_end_ptr: __u16, pub ext_loader_ver: __u8, pub ext_loader_type: __u8, pub cmd_line_ptr: __u32, pub initrd_addr_max: __u32, pub kernel_alignment: __u32, pub relocatable_kernel: __u8, pub min_alignment: __u8, pub xloadflags: __u16, pub cmdline_size: __u32, pub hardware_subarch: __u32, pub hardware_subarch_data: __u64, pub payload_offset: __u32, pub payload_length: __u32, pub 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

Trait Implementations§

source§

impl Clone for setup_header

source§

fn clone(&self) -> setup_header

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 setup_header

source§

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

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

impl Default for setup_header

source§

fn default() -> setup_header

Returns the “default value” for a type. Read more
source§

impl Copy for setup_header

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.