HUGETLBFS_FIND_PATH(3)
π HUGETLBFS_FIND_PATH π
okay bestie, so this is a page from the Library Functions Manual, and it's about hugetlbfs_find_path and hugetlbfs_find_path_for_size β two little cuties whose whole job is to Locate an appropriate hugetlbfs mount point. no cap. π«Ά
β¨ NAME β¨
hugetlbfs_find_path, hugetlbfs_find_path_for_size β they locate an appropriate hugetlbfs mount point for you π
πΈ SYNOPSIS πΈ
#include <hugetlbfs.h>
const char *hugetlbfs_find_path(void);
const char *hugetlbfs_find_path_for_size(long page_size);
π¦ DESCRIPTION π¦
so these functions literally hand you back a pathname for a mounted hugetlbfs filesystem, and they pick the one that matches the appropriate huge page size. it's giving β¨personalized serviceβ¨
hugetlbfs_find_pathβ uses the default huge page size. if you wanna know what that default actually is, go checkgethugepagesize(3)bestie πhugetlbfs_find_path_for_sizeβ here you gotta pass in a valid huge page size yourself, no guessing allowed. seegethugepagesizes(3)for the list of what counts as valid π
lowkey important: hugetlbfs_find_path_for_size needs a valid huge page size. don't just make one up, it will not slay.
β RETURN VALUE β
- on success π β you get back a non-
NULLvalue. iconic. - on failure π β you get
NULL. it's giving rejected.
π SEE ALSO π
π AUTHORS π
libhugetlbfs was written by various people on the libhugetlbfs-devel mailing list. a whole group chat of legends fr fr π«Ά
and that's the tea, bestie π this page is dated March 7, 2012, and it comes to you from libhugetlbfs. go find your mount point and live your main character era πβ¨π
π¦ 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