twizzler_rt_abi/
info.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Functions for getting system information.

/// System information.
pub type SystemInfo = crate::bindings::system_info;

impl SystemInfo {
    /// Get the monotonicity of the system monotonic clock.
    pub fn clock_monotonicity(&self) -> crate::time::Monotonicity {
        self.clock_monotonicity.into()
    }
}

/// Get information about the system.
pub fn twz_rt_get_sysinfo() -> SystemInfo {
    unsafe { crate::bindings::twz_rt_get_sysinfo() }
}