libnvme\_alloc\_huge(9) libnvme API manual libnvme\_alloc\_huge(9)

# [NAME](#NAME)

libnvme\_alloc\_huge - Allocate a huge page-backed memory buffer

# [SYNOPSIS](#SYNOPSIS)

**void * libnvme\_alloc\_huge** **(size\_t len ,** **struct libnvme\_mem\_huge \*mh );**

# [ARGUMENTS](#ARGUMENTS)

[len](#len)

Size of the memory buffer in bytes

[mh](#mh)

Huge memory allocation descriptor

# [DESCRIPTION](#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](#RETURN)

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

libnvme\_alloc\_huge October 2026

---

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