sysinfo

Contains system information.

Service:System Information

Syntax

  #include <linux/kernel.h>
  
  struct sysinfo
  {
     long             uptime;
     unsigned long    loads[3]; 
     unsigned long    totalram; 
     unsigned long    freeram;
     unsigned long    sharedram; 
     unsigned long    bufferram;
     unsigned long    totalswap; 
     unsigned long    freeswap;
     unsigned long    totalhigh;
     unsigned long    freehigh; 
     unsigned int     mem_unit;
     unsigned short   procs; 
     char            _f[sizeof(short)+2*sizeof(long)];
  };
  

Fields

uptime

Specifies the number of seconds since the last boot.

loads

Specifies the load averages for 1, 5, and 15 minute intervals. On NetWare, always returns 0.

totalram

Specifies total amount of usable memory.

freeram

Specifies the amount of memory that is currently available for allocation. On NetWare, always returns 0.

sharedram

Specifies amount of shared memory. On NetWare, always returns 0

bufferram

Specifies the amount of memory in use by cache buffers.

totalswap

Specifies the amount of swap space that is available. On NetWare, always returns 0.

totalhigh

Specifies the total amount of high memory. Returns 0 if there is no extented memory manager.

freehigh

Specifies the amount of high memory that is currently available. Returns 0 if there is no extented memory manager.

mem_unit

Specifies in bytes the size of the memory unit.

procs

Specifies the number of current POSIX processes on the machine.

_f

Padding.