1GETHUGEPAGESIZE(3)         Library Functions Manual         GETHUGEPAGESIZE(3)
2
3
4

NAME

6       gethugepagesize - Get the default huge page size
7

SYNOPSIS

9       #include <hugetlbfs.h>
10
11       long gethugepagesize(void)
12
13

DESCRIPTION

15       The  gethugepagesize() function returns the default huge page size used
16       by libhugetlbfs.  This will be either the system default,  or  a  valid
17       value set by the environment variable HUGETLB_DEFAULT_PAGE_SIZE.
18
19       If  the  system  does  not  support  any  huge  page  sizes an error is
20       returned.
21
22

RETURN VALUE

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

ERRORS

29       ENOSYS The system does not support huge pages.
30
31

SEE ALSO

33       libhugetlbfs(7)
34
35

AUTHORS

37       libhugetlbfs  was  written  by various people on the libhugetlbfs-devel
38       mailing list.
39
40
41
42                                 March 7, 2012              GETHUGEPAGESIZE(3)
Impressum