| 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_TEST_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_test_path - Determine whether a mount point is hugetlbfs |
| 24 |
.SH SYNOPSIS |
| 25 |
.B #include <hugetlbfs.h> |
| 26 |
|
| 27 |
.br |
| 28 |
int hugetlbfs_test_path(const char *mount); |
| 29 |
|
| 30 |
.SH DESCRIPTION |
| 31 |
|
| 32 |
The hugetlbfs_test_path() function determines whether a given pathname |
| 33 |
is in a hugetlbfs filesystem. |
| 34 |
|
| 35 |
.SH RETURN VALUE |
| 36 |
|
| 37 |
On success, 1 is returned for a hugetlbfs filesystem, or 0 for a |
| 38 |
non-hugetlbfs filesystem. On failure, -1 is returned and errno is set |
| 39 |
appropriately. |
| 40 |
|
| 41 |
.SH ERRORS |
| 42 |
|
| 43 |
.PP |
| 44 |
Please see statfs(3) for possible values for errno. |
| 45 |
|
| 46 |
|
| 47 |
.SH SEE ALSO |
| 48 |
.I statfs(3), |
| 49 |
.I libhugetlbfs(7) |
| 50 |
|
| 51 |
.SH AUTHORS |
| 52 |
libhugetlbfs was written by various people on the libhugetlbfs-devel |
| 53 |
mailing list. |