get_avphys_pages (3) Linux Manual Page
NAME get_phys_pages, get_avphys_pages – get total and available physical page counts SYNOPSIS #include <sys/sysinfo.h> long get_phys_pages(void); long get_avphys_pages(void); DESCRIPTION The function get_phys_pages() returns the total number of physical pages of memory available on the system. The function get_avphys_pages() returns the number of currently available physical pages of memory on the system. RETURN VALUE On success,…
