logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

hugetlbfs_test_path - Determine whether a mount point is hugetlbfs

Authors

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

                                                  March 7, 2012                           HUGETLBFS_TEST_PATH(3)

Description

       The hugetlbfs_test_path() function determines whether a given pathname is in a hugetlbfs filesystem.

Errors

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

Name

       hugetlbfs_test_path - Determine whether a mount point is hugetlbfs

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.

See Also

statfs(3),libhugetlbfs(7)

Synopsis

#include<hugetlbfs.h>

       int hugetlbfs_test_path(const char *mount);

See Also