twizzler_rt_abi/
info.rs

1//! Functions for getting system information.
2
3use crate::nk;
4
5/// System information.
6pub type SystemInfo = crate::bindings::system_info;
7
8impl SystemInfo {
9    /// Get the monotonicity of the system monotonic clock.
10    pub fn clock_monotonicity(&self) -> crate::time::Monotonicity {
11        self.clock_monotonicity.into()
12    }
13}
14
15/// Get information about the system.
16pub fn twz_rt_get_sysinfo() -> SystemInfo {
17    unsafe { nk!(crate::bindings::twz_rt_get_sysinfo()) }
18}