pub struct LayoutRequest {
pub ram_bytes: u64,
pub pref_address: u64,
pub kernel_alignment: u64,
pub init_size: u64,
pub relocatable: bool,
pub initrd_bytes: u64,
pub cmdline_len: u64,
}Expand description
Inputs of the layout decision.
The fields are plain numbers so the planner stays independent from the image parser; the caller copies them from the validated image plan.
Fields§
§ram_bytes: u64Usable guest memory, in bytes, starting at guest-physical 0.
pref_address: u64Preferred kernel load address (pref_address, 0 when absent).
kernel_alignment: u64Kernel alignment requirement in bytes (power of two, 0 means 4 KiB).
init_size: u64init_size: contiguous memory the kernel needs from its load address.
relocatable: boolTrue when the image may be placed at a loader-chosen address.
initrd_bytes: u64Size of the initial ramdisk, 0 when none is loaded.
cmdline_len: u64Length of the command line, including its terminating NUL.
Trait Implementations§
Source§impl Clone for LayoutRequest
impl Clone for LayoutRequest
impl Copy for LayoutRequest
Source§impl Debug for LayoutRequest
impl Debug for LayoutRequest
impl Eq for LayoutRequest
Source§impl PartialEq for LayoutRequest
impl PartialEq for LayoutRequest
impl StructuralPartialEq for LayoutRequest
Auto Trait Implementations§
impl Forget for LayoutRequest
impl Freeze for LayoutRequest
impl Move for LayoutRequest
impl RefUnwindSafe for LayoutRequest
impl Send for LayoutRequest
impl Sync for LayoutRequest
impl Unpin for LayoutRequest
impl UnsafeUnpin for LayoutRequest
impl UnwindSafe for LayoutRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more