Debian Codegraph @

man/gethugepagesize.3

raw
1 .\" Hey, EMACS: -*- nroff -*-
2 .\" Copyright 2012 Cray Inc.
3 .\" All rights reserved.
4 .\" Licensed under LGPL 2.1 by Cray Inc.
5 .\"
6 .\" First parameter, NAME, should be all caps
7 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
8 .\" other parameters are allowed: see man(7), man(1)
9 .TH GETHUGEPAGESIZE 3 "March 7, 2012"
10 .\" Please adjust this date whenever revising the manpage.
11 .\"
12 .\" Some roff macros, for reference:
13 .\" .nh disable hyphenation
14 .\" .hy enable hyphenation
15 .\" .ad l left justify
16 .\" .ad b justify to both left and right margins
17 .\" .nf disable filling
18 .\" .fi enable filling
19 .\" .br insert line break
20 .\" .sp <n> insert n+1 empty lines
21 .\" for manpage-specific macros, see man(7)
22 .SH NAME
23 gethugepagesize - Get the default huge page size
24 .SH SYNOPSIS
25 .B #include <hugetlbfs.h>
26 .br
27
28 .B long gethugepagesize(void)
29
30 .SH DESCRIPTION
31
32 The gethugepagesize() function returns the default huge page size used by
33 libhugetlbfs. This will be either the system default, or a valid value set
34 by the environment variable \fBHUGETLB_DEFAULT_PAGE_SIZE\fP.
35
36 If the system does not support any huge page sizes an error is returned.
37
38 .SH RETURN VALUE
39
40 On success, the default huge page size is returned. On failure,
41 -1 is returned and errno is set appropriately.
42
43 .SH ERRORS
44
45 .TP
46 .B ENOSYS
47 The system does not support huge pages.
48
49 .SH SEE ALSO
50 .I libhugetlbfs(7)
51
52 .SH AUTHORS
53 libhugetlbfs was written by various people on the libhugetlbfs-devel
54 mailing list.