Re: How to get system memory usage from C program?
- From: Igmar Palsenberg <igmar@xxxxxxxxxxxxxxxx>
- Date: Wed, 07 Jun 2006 11:30:21 +0200
James X. Li wrote:
"ltrace" shows that the "free" command uses a function meminfo() to get the information.
Doesn't anybody know how do I call this function directly from
a C program?
free opens /proc/meminfo and filters out the info it needs. meminfo() is simply a helper function used by free, part of procps, used to obtain that info.
do an strace to see what it actually does.
Igmar
.
- Prev by Date: Re: Upgrade Fedora Core 3 to Fedora Core 5 Help please
- Next by Date: Forum
- Previous by thread: Re: gentoo problem and installing firefox 1.5
- Next by thread: Forum
- Index(es):