---
name: "hugetlbfs_test_path"
section: "3"
platform: "linux"
package: "libhugetlbfs-dev"
version: "2.24-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/hugetlbfs_test_path"
---

# hugetlbfs\_test\_path(3)

Determine whether a mount point is hugetlbfs

## NAME

hugetlbfs\_test\_path - Determine whether a mount point is hugetlbfs

## SYNOPSIS

**#include \<hugetlbfs.h\>**

int hugetlbfs\_test\_path(const char \*mount);

## DESCRIPTION

The hugetlbfs\_test\_path() function determines whether a given pathname is in a hugetlbfs filesystem.

## RETURN VALUE

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.

## ERRORS

Please see statfs(3) for possible values for errno.

## SEE ALSO

*statfs(3),* *[libhugetlbfs(7)](/libhugetlbfs/7.md)*

## AUTHORS

libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list.
