#[repr(C)]
pub struct StivaleModule { pub start: u64, pub end: u64, pub string: [u8; 128], }
Expand description

Structure representing a module, containing the information of a module that the bootloader loaded alongside the kernel.

Fields

start: u64

Address where this module has been loaded.

end: u64

End address of this module.

string: [u8; 128]

ASCII 0-terminated string passed to the module as specified in the config file.

Implementations

Returns the size of this module.

Returns the ASCII 0-terminated string passed to the module as specified in the config file as a rust string.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.