Struct kernel_loader::multiboot::MultibootKernel
source · pub struct MultibootKernel {
pub offset: u32,
pub boot_modules_page_aligned: bool,
pub need_available_memory: bool,
pub load: Option<MultibootLoad>,
pub preferred_video_mode: Option<MultibootVideoMode>,
}
Expand description
Multiboot header retrieved from a kernel image.
Fields§
§offset: u32
Byte offset of the beginning of the multiboot header in the kernel image.
boot_modules_page_aligned: bool
Kernel requires that boot modules are aligned to 4 KB.
need_available_memory: bool
Kernel requires available memory information (mem_*
fields).
load: Option<MultibootLoad>
Kernel load address.
If present, this overrides any other executable format headers (e.g. ELF).
preferred_video_mode: Option<MultibootVideoMode>
Kernel preferred video mode.
If present, the kernel also requires information about the video mode table.
Trait Implementations§
source§impl Clone for MultibootKernel
impl Clone for MultibootKernel
source§fn clone(&self) -> MultibootKernel
fn clone(&self) -> MultibootKernel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MultibootKernel
impl Send for MultibootKernel
impl Sync for MultibootKernel
impl Unpin for MultibootKernel
impl UnwindSafe for MultibootKernel
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