HUGETLBFS_TEST_PATH(3)
β¨ NAME β¨
hugetlbfs_test_path β bestie, this is the girl who tells you whether a mount point is hugetlbfs or not π
πΈ SYNOPSIS πΈ
#include <hugetlbfs.h>
int hugetlbfs_test_path(const char *mount);
π¦ DESCRIPTION π¦
Okay so listen. The hugetlbfs_test_path() function is literally just doing a vibe check on a pathname β it figures out whether that given pathname lives inside a hugetlbfs filesystem or not. That's it. That's the whole job. She's not complicated, she just knows things π
π RETURN VALUE π
So here's the tea on what she hands back to you:
1β slay, it is a hugetlbfs filesystem β¨0β nope, it's a non-hugetlbfs filesystem π-1β it went wrong π anderrnogets set appropriately, so go check on her
π ERRORS π
Not me listing them all out here β please go peek at statfs(3) for the possible values of errno, that's where the whole saga lives. π
π SEE ALSO π
statfs(3)libhugetlbfs(7)
π AUTHORS π
libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list. Group project energy, but like, the iconic kind π«Ά
k bye bestie, mwah π this page came from the Library Functions Manual and the original was dated March 7, 2012 β yeah she's an elder but she still ate π₯
π¦ where this page comes from
- debian bookworm: libhugetlbfs-dev 2.23-5 Β· LGPL-2.1-only
- debian trixie: libhugetlbfs-dev 2.24-1+b1 Β· LGPL-2.1-only
- nixpkgs unstable: libhugetlbfs 2.24
- opensuse-leap 16.0: libhugetlbfs-devel 2.24.0.g1322884-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libhugetlbfs-devel 2.24.0.g1322884-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libhugetlbfs-devel 2.24.0.g1322884-160000.3.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libhugetlbfs-devel 2.24.0.g1322884-160000.3.2 Β· LGPL-2.1-or-later
- ubuntu jammy: libhugetlbfs-dev 2.23-4 Β· LGPL-2.1-only
- ubuntu noble: libhugetlbfs-dev 2.23-5build1 Β· LGPL-2.1-only
- ubuntu questing: libhugetlbfs-dev 2.24-1
- ubuntu resolute: libhugetlbfs-dev 2.24-1build1 Β· LGPL-2.1-only
- ubuntu stonking: libhugetlbfs-dev 2.24-1build1 Β· LGPL-2.1-only
- Copyright 2012 Cray Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms