---
name: "libnvme_alloc_huge-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvme_alloc_huge-libnvme3"
---

# libnvme\_alloc\_huge-libnvme3(2)

Allocate a huge page-backed memory buffer

## 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

- len

  Size of the memory buffer in bytes

- mh

  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.
