---
name: "__skb_alloc_pages"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/__skb_alloc_pages"
---

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

allocate pages for ps-rx on a skb and preserve pfmemalloc data

## NAME

\_\_skb\_alloc\_pages - allocate pages for ps-rx on a skb and preserve pfmemalloc data

## SYNOPSIS

**struct page \* \_\_skb\_alloc\_pages(gfp\_t** *gfp\_mask***, struct sk\_buff \*** *skb***, unsigned int** *order***);**

## ARGUMENTS

*gfp\_mask*

alloc\_pages\_node mask. Set \_\_GFP\_NOMEMALLOC if not for network packet RX

*skb*

skb to set pfmemalloc on if \_\_GFP\_MEMALLOC is used

*order*

size of the allocation

## DESCRIPTION

Allocate a new page.

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

## COPYRIGHT
