Struct linux_api::sysinfo::linux_sysinfo
source · #[repr(C)]pub struct linux_sysinfo {Show 14 fields
pub uptime: c_long,
pub loads: [linux___kernel_ulong_t; 3],
pub totalram: linux___kernel_ulong_t,
pub freeram: linux___kernel_ulong_t,
pub sharedram: linux___kernel_ulong_t,
pub bufferram: linux___kernel_ulong_t,
pub totalswap: linux___kernel_ulong_t,
pub freeswap: linux___kernel_ulong_t,
pub procs: c_ushort,
pub pad: c_ushort,
pub totalhigh: linux___kernel_ulong_t,
pub freehigh: linux___kernel_ulong_t,
pub mem_unit: c_uint,
pub l_f: [c_char; 0],
}
Fields§
§uptime: c_long
Seconds since boot
loads: [linux___kernel_ulong_t; 3]
1, 5, and 15 minute load averages
totalram: linux___kernel_ulong_t
Total usable main memory size
freeram: linux___kernel_ulong_t
Available memory size
Amount of shared memory
bufferram: linux___kernel_ulong_t
Memory used by buffers
totalswap: linux___kernel_ulong_t
Total swap space size
freeswap: linux___kernel_ulong_t
swap space still available
procs: c_ushort
Number of current processes
pad: c_ushort
Explicit padding for m68k
totalhigh: linux___kernel_ulong_t
Total high memory size
freehigh: linux___kernel_ulong_t
Available high memory size
mem_unit: c_uint
Memory unit size in bytes
l_f: [c_char; 0]
Padding: libc5 uses this..
Trait Implementations§
source§impl Clone for linux_sysinfo
impl Clone for linux_sysinfo
source§fn clone(&self) -> linux_sysinfo
fn clone(&self) -> linux_sysinfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for linux_sysinfo
impl Debug for linux_sysinfo
impl Copy for linux_sysinfo
Auto Trait Implementations§
impl Freeze for linux_sysinfo
impl RefUnwindSafe for linux_sysinfo
impl Send for linux_sysinfo
impl Sync for linux_sysinfo
impl Unpin for linux_sysinfo
impl UnwindSafe for linux_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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)