hugetlbfs_find_path(3)

hugetlbfs_find_path3

Locate an appropriate hugetlbfs mount point

Usage

#include <hugetlbfs.h>

const char *hugetlbfs_find_path(void);
const char *hugetlbfs_find_path_for_size(long page_size);

Overview

These functions return a pathname for a mounted hugetlbfs filesystem for the appropriate huge page size. For hugetlbfs_find_path, the default huge page size is used (see gethugepagesize(3)). For hugetlbfs_find_path_for_size, a valid huge page size must be specified (see gethugepagesizes(3)).

Return value

On success, a non-NULL value is returned. On failure, NULL is returned.

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.