Re: Physical memory available in the system - Regarding

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

 



> 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/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux