| 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 HUGETLBFS_FIND_PATH 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 |
hugetlbfs_find_path, hugetlbfs_find_path_for_size - Locate an appropriate hugetlbfs mount point |
| 24 |
.SH SYNOPSIS |
| 25 |
.B #include <hugetlbfs.h> |
| 26 |
|
| 27 |
.br |
| 28 |
const char *hugetlbfs_find_path(void); |
| 29 |
.br |
| 30 |
const char *hugetlbfs_find_path_for_size(long page_size); |
| 31 |
|
| 32 |
.SH DESCRIPTION |
| 33 |
|
| 34 |
These functions return a pathname for a mounted hugetlbfs filesystem for |
| 35 |
the appropriate huge page size. For hugetlbfs_find_path, the default |
| 36 |
huge page size is used (see gethugepagesize(3)). For |
| 37 |
hugetlbfs_find_path_for_size, a valid huge page size must be specified |
| 38 |
(see gethugepagesizes(3)). |
| 39 |
|
| 40 |
.SH RETURN VALUE |
| 41 |
|
| 42 |
On success, a non-NULL value is returned. |
| 43 |
On failure, NULL is returned. |
| 44 |
|
| 45 |
.SH SEE ALSO |
| 46 |
.I libhugetlbfs(7), |
| 47 |
.I gethugepagesize(3), |
| 48 |
.I gethugepagesizes(3) |
| 49 |
|
| 50 |
.SH AUTHORS |
| 51 |
libhugetlbfs was written by various people on the libhugetlbfs-devel |
| 52 |
mailing list. |