Scroll to navigation

libnvme_alloc_huge(2) libnvme API manual libnvme_alloc_huge(2)

NAME

libnvme_alloc_huge - Allocate a huge page-backed memory buffer

SYNOPSIS

void * libnvme_alloc_huge (size_t len , struct libnvme_mem_huge *mh );

ARGUMENTS

Size of the memory buffer in bytes
Huge memory allocation descriptor

DESCRIPTION

Attempts to allocate a memory buffer backed by huge pages. Allocation details are stored in mh and must later be released using libnvme_free_huge.

RETURN

pointer to the allocated memory buffer on success, or NULL on failure.

libnvme_alloc_huge October 2026