__skb_alloc_pages(9)

__skb_alloc_pages9

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

Usage

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

Overview

Allocate a new page.

NULL is returned if there is no free memory.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.