---
name: "alloc_pages_exact_nid"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/alloc_pages_exact_nid"
---

# alloc\_pages\_exact\_nid(9)

allocate an exact number of physically-contiguous pages on a node.

## NAME

alloc\_pages\_exact\_nid - allocate an exact number of physically-contiguous pages on a node.

## SYNOPSIS

**void \* alloc\_pages\_exact\_nid(int** *nid***, size\_t** *size***, gfp\_t** *gfp\_mask***);**

## ARGUMENTS

*nid*

the preferred node ID where memory should be allocated

*size*

the number of bytes to allocate

*gfp\_mask*

GFP flags for the allocation

## DESCRIPTION

Like **alloc\_pages\_exact**, but try to allocate on node nid first before falling back.

## COPYRIGHT
