hugetlbfs_test_path man page
hugetlbfs_test_path — Determine whether a mount point is hugetlbfs
int hugetlbfs_test_path(const char *mount);
The hugetlbfs_test_path() function determines whether a given pathname is in a hugetlbfs filesystem.
On success, 1 is returned for a hugetlbfs filesystem, or 0 for a non-hugetlbfs filesystem. On failure, -1 is returned and errno is set appropriately.
Please see statfs(3) for possible values for errno.
libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list.