linux_api::sysinfo

Type Alias sysinfo

source
pub type sysinfo = linux_sysinfo;

Aliased Type§

struct sysinfo {
Show 14 fields pub uptime: i64, pub loads: [u64; 3], pub totalram: u64, pub freeram: u64, pub sharedram: u64, pub bufferram: u64, pub totalswap: u64, pub freeswap: u64, pub procs: u16, pub pad: u16, pub totalhigh: u64, pub freehigh: u64, pub mem_unit: u32, pub l_f: [i8; 0],
}

Fields§

§uptime: i64

Seconds since boot

§loads: [u64; 3]

1, 5, and 15 minute load averages

§totalram: u64

Total usable main memory size

§freeram: u64

Available memory size

§sharedram: u64

Amount of shared memory

§bufferram: u64

Memory used by buffers

§totalswap: u64

Total swap space size

§freeswap: u64

swap space still available

§procs: u16

Number of current processes

§pad: u16

Explicit padding for m68k

§totalhigh: u64

Total high memory size

§freehigh: u64

Available high memory size

§mem_unit: u32

Memory unit size in bytes

§l_f: [i8; 0]

Padding: libc5 uses this..

Trait Implementations§