#[repr(C)]pub struct ModuleTable {
pub count: u32,
pub entries: [ModuleEntry; 64],
}Expand description
Module table header + entries.
The bootloader builds this in physical memory and passes the
address via KernelArgs::modules_base.
Fields§
§count: u32§entries: [ModuleEntry; 64]Implementations§
Source§impl ModuleTable
impl ModuleTable
Sourcepub fn write_into(
storage: &mut [u8],
modules: &[ModuleEntry],
) -> Result<(), &'static str>
pub fn write_into( storage: &mut [u8], modules: &[ModuleEntry], ) -> Result<(), &'static str>
Write the complete fixed table. All checks precede the first write. Bytes beyond MODULE_TABLE_SIZE, including allocation padding, are untouched.
Auto Trait Implementations§
impl Freeze for ModuleTable
impl RefUnwindSafe for ModuleTable
impl Send for ModuleTable
impl Sync for ModuleTable
impl Unpin for ModuleTable
impl UnsafeUnpin for ModuleTable
impl UnwindSafe for ModuleTable
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