#[repr(C)]pub struct SiloConfig {Show 21 fields
pub mem_min: u64,
pub mem_max: u64,
pub cpu_shares: u32,
pub cpu_quota_us: u64,
pub cpu_period_us: u64,
pub cpu_affinity_mask: u64,
pub max_tasks: u32,
pub io_bw_read: u64,
pub io_bw_write: u64,
pub caps_ptr: u64,
pub caps_len: u64,
pub flags: u64,
pub sid: u32,
pub mode: u16,
pub family: u8,
pub cpu_features_required: u64,
pub cpu_features_allowed: u64,
pub xcr0_mask: u64,
pub graphics_max_sessions: u16,
pub graphics_session_ttl_sec: u32,
pub graphics_reserved: u16,
}Fields§
§mem_min: u64§mem_max: u64§cpu_quota_us: u64§cpu_period_us: u64§cpu_affinity_mask: u64§max_tasks: u32§io_bw_read: u64§io_bw_write: u64§caps_ptr: u64§caps_len: u64§flags: u64§sid: u32§mode: u16§family: u8§cpu_features_required: u64CPU features that this silo requires (bitflags from CpuFeatures).
cpu_features_allowed: u64CPU features that this silo is allowed to use.
xcr0_mask: u64Effective XCR0 mask (computed from allowed features & host capabilities).
graphics_max_sessions: u16Maximum concurrent graphics sessions for this silo (0 = disabled).
graphics_session_ttl_sec: u32Graphics session time-to-live in seconds.
graphics_reserved: u16Reserved for ABI expansion.
Implementations§
Source§impl SiloConfig
impl SiloConfig
Sourcefn validate(&self) -> Result<(), SyscallError>
fn validate(&self) -> Result<(), SyscallError>
Performs the validate operation.
Trait Implementations§
Source§impl Clone for SiloConfig
impl Clone for SiloConfig
Source§fn clone(&self) -> SiloConfig
fn clone(&self) -> SiloConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SiloConfig
Source§impl Debug for SiloConfig
impl Debug for SiloConfig
Auto Trait Implementations§
impl Freeze for SiloConfig
impl RefUnwindSafe for SiloConfig
impl Send for SiloConfig
impl Sync for SiloConfig
impl Unpin for SiloConfig
impl UnsafeUnpin for SiloConfig
impl UnwindSafe for SiloConfig
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,
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