libnvme(9) API Manual libnvme(9)

# [NAME](#NAME)

struct libnvme\_mem\_huge - Huge page memory allocation descriptor

# [SYNOPSIS](#SYNOPSIS)

struct libnvme\_mem\_huge {  
**size\_t len;**  
**bool libnvme\_alloc;**  
**void \*p;**  
};

# [Members](#Members)

[len](#len)

Size of the allocated buffer in bytes

[libnvme\_alloc](#libnvme_alloc)

Indicates that *p* was allocated using **libnvme\_alloc**

[p](#p)

Pointer to the allocated memory buffer

# [Description](#Description)

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

---

Document: libnvme_mem_huge-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
