rustix/backend/linux_raw/system/
types.rs1use crate::ffi;
2use core::mem::size_of;
3
4#[non_exhaustive]
6#[repr(C)]
7pub struct Sysinfo {
8 pub uptime: ffi::c_long,
10 pub loads: [ffi::c_ulong; 3],
12 pub totalram: ffi::c_ulong,
14 pub freeram: ffi::c_ulong,
16 pub sharedram: ffi::c_ulong,
18 pub bufferram: ffi::c_ulong,
20 pub totalswap: ffi::c_ulong,
22 pub freeswap: ffi::c_ulong,
24 pub procs: ffi::c_ushort,
26
27 pub(crate) pad: ffi::c_ushort,
28
29 pub totalhigh: ffi::c_ulong,
31 pub freehigh: ffi::c_ulong,
33 pub mem_unit: ffi::c_uint,
35
36 pub(crate) f: [u8; 20 - 2 * size_of::<ffi::c_long>() - size_of::<ffi::c_int>()],
37}
38
39pub(crate) type RawUname = linux_raw_sys::system::new_utsname;