struct sysinfo {
long uptime;
unsigned long loads[3]; //machin's load during last minute, last five
min, and last 15 min.
unsigned long totalram;
unsigned long freeram;
unsigned long sharedram;
unsigned long bufferram;
unsigned long totalswap;
unsigned long freeswap;
unsigned short procs; //number of process
char[22] _f; //padding to reach 64 bytes length
}
int sysinfo(struct sysinfo *info);
To browse the source code of open systems is the key :-)
-- "Memory is like gasoline. You use it up when you are running. Of course you get it all back when you reboot..."; Actual explanation obtained from the Micro$oft help desk.--Julien Laganier Student Intern Sun Microsystem Laboratories - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/