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_find_path, hugetlbfs_find_path_for_size - Locate an appropriate hugetlbfs mount point

Authors

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

                                                  March 7, 2012                           HUGETLBFS_FIND_PATH(3)

Description

       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)).

Name

       hugetlbfs_find_path, hugetlbfs_find_path_for_size - Locate an appropriate hugetlbfs mount point

Return Value

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

See Also

libhugetlbfs(7),gethugepagesize(3),gethugepagesizes(3)

Synopsis

#include<hugetlbfs.h>

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

See Also