---
name: "__dev_alloc_pages"
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/__dev_alloc_pages"
---

# \_\_dev\_alloc\_pages(9)

allocate page for network Rx

## NAME

\_\_dev\_alloc\_pages - allocate page for network Rx

## SYNOPSIS

**struct page \* \_\_dev\_alloc\_pages(gfp\_t** *gfp\_mask***, unsigned int** *order***);**

## ARGUMENTS

*gfp\_mask*

allocation priority. Set \_\_GFP\_NOMEMALLOC if not for network Rx

*order*

size of the allocation

## DESCRIPTION

Allocate a new page.

**NULL** is returned if there is no free memory.

## COPYRIGHT
