Struct twizzler_abi::syscall::SysInfo
source · #[repr(C)]pub struct SysInfo {
pub version: u32,
pub flags: u32,
pub cpu_count: usize,
pub page_size: usize,
}
Expand description
Information about the system.
Fields§
§version: u32
The version of this data structure, to allow expansion.
flags: u32
Flags. Currently unused.
cpu_count: usize
The number of CPUs on this system. Hyperthreads are counted as individual CPUs.
page_size: usize
The size of a virtual address page on this system.
Implementations§
Trait Implementations§
source§impl Ord for SysInfo
impl Ord for SysInfo
source§impl PartialEq<SysInfo> for SysInfo
impl PartialEq<SysInfo> for SysInfo
source§impl PartialOrd<SysInfo> for SysInfo
impl PartialOrd<SysInfo> for SysInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SysInfo
impl Eq for SysInfo
impl StructuralEq for SysInfo
impl StructuralPartialEq for SysInfo
Auto Trait Implementations§
impl ObjSafe for SysInfo
impl RefUnwindSafe for SysInfo
impl Send for SysInfo
impl Sync for SysInfo
impl Unpin for SysInfo
impl UnwindSafe for SysInfo
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