libnvme(9) API Manual libnvme(9)

struct libnvme_mem_huge - Huge page memory allocation descriptor

struct libnvme_mem_huge {
size_t len;
bool libnvme_alloc;
void *p;
};

Size of the allocated buffer in bytes
Indicates that p was allocated using libnvme_alloc
Pointer to the allocated memory buffer

Describes a memory buffer allocated by libnvme_alloc_huge. The structure stores allocation metadata required for proper cleanup by libnvme_free_huge.

struct libnvme_mem_huge October 2026