[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Physical memory available in the system - Regarding



> Hi

Hello,

> 
> Would somebody be kind enough to give me some pointers on the
> availability of some linux kernel call that I can use to get the
> amount of physical memory available on the system ? 

You can use the syscall info, only need to use a struct sysinfo and your
field is freeram. Other way is using the proc interface `cat
/proc/meminfo` with meminfo_read_proc().

-- 
Alejandro Sánchez Acosta <asanchez@gnu.org>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/