logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gethugepagesize - Get the default huge page size

Authors

       libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list.

                                                  March 7, 2012                               GETHUGEPAGESIZE(3)

Description

       The  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.

Errors

ENOSYS The system does not support huge pages.

Name

       gethugepagesize - Get the default huge page size

Return Value

       On success, the default huge page size is returned.   On  failure,  -1  is  returned  and  errno  is  set
       appropriately.

See Also

libhugetlbfs(7)

Synopsis

#include<hugetlbfs.h>longgethugepagesize(void)

See Also