#[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,
}
Available on (x86 or x86-64) and crate feature
elf
only.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§
Source§impl ByteValued for hvm_start_info
Available on (crate features elf
or bzimage
) and (crate features elf
or pe
or bzimage
) only.
impl ByteValued for hvm_start_info
Available on (crate features
elf
or bzimage
) and (crate features elf
or pe
or bzimage
) only.Source§fn 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 moreSource§fn 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 moreSource§fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Converts a mutable reference to
self
into a mutable slice of bytes. Read moreSource§fn 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 moreSource§impl Clone for hvm_start_info
impl Clone for hvm_start_info
Source§fn clone(&self) -> hvm_start_info
fn clone(&self) -> hvm_start_info
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 moreSource§impl Debug for hvm_start_info
impl Debug for hvm_start_info
Source§impl Default for hvm_start_info
impl Default for hvm_start_info
Source§fn 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 Freeze for hvm_start_info
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§
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