Date: Thu, 2 Nov 2000 11:36:57 -0800 From: Charles Henrich <henrich@sigbus.com> To: freebsd-emulation@freebsd.org Subject: linux sysinfo() Message-ID: <20001102113657.B78298@sigbus.com>
next in thread | raw e-mail | index | archive | help
I've just found a man page on it, its a pretty simple function: sysinfo returns information in the following structure: struct sysinfo { long uptime; /* Seconds since boot */ unsigned long loads[3]; /* 1, 5, and 15 minute load average s */ unsigned long totalram; /* Total usable main memory size */ unsigned long freeram; /* Available memory size */ unsigned long sharedram; /* Amount of shared memory */ unsigned long bufferram; /* Memory used by buffers */ unsigned long totalswap; /* Total swap space size */ unsigned long freeswap; /* swap space still available */ unsigned short procs; /* Number of current processes */ char _f[22]; /* Pads structure to 64 bytes */ }; Which FreeBSD has no equivilances for. All I can see if the poking about in kernel memory. Does anyone have any pointers on how to do such a thing from kernel space? Thanks! (This function looks like it would be a useful FreeBSD function as well!) -Crh Charles Henrich Manex Visual Effects henrich@sigbus.com http://www.sigbus.com/~henrich To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001102113657.B78298>