Struct multiboot::BootDevice[][src]

#[repr(C, packed)]
pub struct BootDevice { pub drive: u8, pub partition1: u8, pub partition2: u8, pub partition3: u8, }

The ‘boot_device’ field.

Partition numbers always start from zero. Unused partition bytes must be set to 0xFF. For example, if the disk is partitioned using a simple one-level DOS partitioning scheme, then ‘part’ contains the DOS partition number, and ‘part2’ and ‘part3’ are both 0xFF. As another example, if a disk is partitioned first into DOS partitions, and then one of those DOS partitions is subdivided into several BSD partitions using BSD's disklabel strategy, then ‘part1’ contains the DOS partition number, ‘part2’ contains the BSD sub-partition within that DOS partition, and ‘part3’ is 0xFF.

Fields

Contains the bios drive number as understood by the bios INT 0x13 low-level disk interface: e.g. 0x00 for the first floppy disk or 0x80 for the first hard disk.

Specifies the top-level partition number.

Specifies a sub-partition in the top-level partition

Specifies a sub-partition in the 2nd-level partition

Methods

impl BootDevice
[src]

Is partition1 a valid partition?

Is partition2 a valid partition?

Is partition3 a valid partition?

Trait Implementations

impl Debug for BootDevice
[src]

Formats the value using the given formatter. Read more

impl Clone for BootDevice
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for BootDevice

impl Sync for BootDevice