1HUGETLBFS_TEST_PATH(3) Library Functions Manual HUGETLBFS_TEST_PATH(3)
2
3
4
6 hugetlbfs_test_path - Determine whether a mount point is hugetlbfs
7
9 #include <hugetlbfs.h>
10
11 int hugetlbfs_test_path(const char *mount);
12
13
15 The hugetlbfs_test_path() function determines whether a given pathname
16 is in a hugetlbfs filesystem.
17
18
20 On success, 1 is returned for a hugetlbfs filesystem, or 0 for a non-
21 hugetlbfs filesystem. On failure, -1 is returned and errno is set
22 appropriately.
23
24
26 Please see statfs(3) for possible values for errno.
27
28
29
31 statfs(3), libhugetlbfs(7)
32
33
35 libhugetlbfs was written by various people on the libhugetlbfs-devel
36 mailing list.
37
38
39
40 March 7, 2012 HUGETLBFS_TEST_PATH(3)