Struct linux_loader::loader::elf::start_info::hvm_start_info
source · [−]#[repr(C)]pub struct hvm_start_info {
pub magic: u32,
pub version: u32,
pub flags: u32,
pub nr_modules: u32,
pub modlist_paddr: u64,
pub cmdline_paddr: u64,
pub rsdp_paddr: u64,
pub memmap_paddr: u64,
pub memmap_entries: u32,
pub reserved: u32,
}
Fields
magic: u32
version: u32
flags: u32
nr_modules: u32
modlist_paddr: u64
cmdline_paddr: u64
rsdp_paddr: u64
memmap_paddr: u64
memmap_entries: u32
reserved: u32
Trait Implementations
sourceimpl ByteValued for hvm_start_info
impl ByteValued for hvm_start_info
sourcefn from_slice(data: &[u8]) -> Option<&Self>
fn from_slice(data: &[u8]) -> Option<&Self>
Converts a slice of raw data into a reference of
Self
. Read moresourcefn from_mut_slice(data: &mut [u8]) -> Option<&mut Self>
fn from_mut_slice(data: &mut [u8]) -> Option<&mut Self>
Converts a mutable slice of raw data into a mutable reference of
Self
. Read moresourcefn as_slice(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
fn as_slice(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Converts a reference to
self
into a slice of bytes. Read moresourcefn as_mut_slice(&mut self) -> &mut [u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
fn as_mut_slice(&mut self) -> &mut [u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
Converts a mutable reference to
self
into a mutable slice of bytes. Read moresourcefn as_bytes(&mut self) -> VolatileSlice<'_, ()>
fn as_bytes(&mut self) -> VolatileSlice<'_, ()>
Converts a mutable reference to
self
into a VolatileSlice
. This is
useful because VolatileSlice
provides a Bytes<usize>
implementation. Read moresourceimpl Clone for hvm_start_info
impl Clone for hvm_start_info
sourcefn clone(&self) -> hvm_start_info
fn clone(&self) -> hvm_start_info
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for hvm_start_info
impl Debug for hvm_start_info
sourceimpl Default for hvm_start_info
impl Default for hvm_start_info
sourcefn default() -> hvm_start_info
fn default() -> hvm_start_info
Returns the “default value” for a type. Read more
impl Copy for hvm_start_info
Auto Trait Implementations
impl RefUnwindSafe for hvm_start_info
impl Send for hvm_start_info
impl Sync for hvm_start_info
impl Unpin for hvm_start_info
impl UnwindSafe for hvm_start_info
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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