hugetlbfs_test_path(3)

hugetlbfs_test_path3

Determine whether a mount point is hugetlbfs

Usage

#include <hugetlbfs.h>

int hugetlbfs_test_path(const char *mount);

Overview

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.

Releases

Unchanged in 4 releases since Debian 10 (Buster).

  1. 10–13

Authors

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

From libhugetlbfs-dev 2.24-1+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.