Struct multiboot2::ModuleTag
source · [−]#[repr(C, packed)]pub struct ModuleTag { /* private fields */ }
Expand description
This tag indicates to the kernel what boot module was loaded along with the kernel image, and where it can be found.
Implementations
sourceimpl ModuleTag
impl ModuleTag
sourcepub fn cmdline(&self) -> Result<&str, Utf8Error>
pub fn cmdline(&self) -> Result<&str, Utf8Error>
Returns the cmdline of the module.
This is an null-terminated UTF-8 string. If this returns Err
then perhaps the memory
is invalid or the bootloader doesn’t follow the spec.
For example: If the GRUB configuration contains
module2 /foobar/some_boot_module --test cmdline-option
then this method
will return --test cmdline-option
.
sourcepub fn start_address(&self) -> u32
pub fn start_address(&self) -> u32
Start address of the module.
sourcepub fn end_address(&self) -> u32
pub fn end_address(&self) -> u32
End address of the module
sourcepub fn module_size(&self) -> u32
pub fn module_size(&self) -> u32
The size of the module/the BLOB in memory.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ModuleTag
impl Send for ModuleTag
impl Sync for ModuleTag
impl Unpin for ModuleTag
impl UnwindSafe for ModuleTag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more