Query: gethugepagesize
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GETHUGEPAGESIZE(3) Library Functions Manual GETHUGEPAGESIZE(3)NAMEgethugepagesize - Get the default huge page sizeSYNOPSIS#include <hugetlbfs.h> long gethugepagesize(void)DESCRIPTIONThe gethugepagesize() function returns the default huge page size used by libhugetlbfs. This will be either the system default, or a valid value set by the environment variable HUGETLB_DEFAULT_PAGE_SIZE. If the system does not support any huge page sizes an error is returned.RETURN VALUEOn success, the default huge page size is returned. On failure, -1 is returned and errno is set appropriately.ERRORSENOSYS The system does not support huge pages.SEE ALSOlibhugetlbfs(7)AUTHORSlibhugetlbfs was written by various people on the libhugetlbfs-devel mailing list. March 7, 2012 GETHUGEPAGESIZE(3)