sys_sysinfo [kernel/timer.c]
Returns information on overall system statistics. Arguments
eax | 116
ebx | Pointer to a sysinfo structure which will receive the return information:
`struc sysinfo { .uptime rd 1 .loads rd 3 .totalram rd 1 .freeram rd 1 .sharedram rd 1 .bufferram rd 1 .totalswap rd 1 .freeswap rd 1 .procs rw 1 .pad rw 1 .totalhigh rd 1 .freehigh rd 1 .mem_unit rd 1 ._f rb 8 }`
`sysinfo members: uptime` `Seconds since boot.` `loads` `1, 5, and 15 minute load averages.` `totalram` `Total usable main memory size.` `freeram` `Available memory size.` `sharedram` `Amount of shared memory.` `bufferram` `Memory used by buffers.` `totalswap` `Total swap space size.` `freeswap` `swap space still available.` `procs` `Number of current processes.` `pad` `explicit padding for m68k.` `totalhigh` `Total high memory size.` `mem_unit` `Memory unit size in bytes.` `_f` `Padding.` All sizes are given as multiples of mem_unit bytes.
Return values If the system call succeeds the return value is 0. If the system call fails the return value is one of the following errno values:
`-EFAULT` | `ebx is invalid.`
Remarks n/a Compatibility n/a