On the command line this can be found out using the 'free' utility and 'cat /proc/meminfo'. What would be the different ways to find out the physical RAM size in Linux programatically from a :
- Userspace Application
- Kernel Module
What API calls are available ?