Name

__skb_alloc_page — allocate a page for ps-rx for a given skb and preserve pfmemalloc data

Synopsis

struct page * __skb_alloc_page (gfp_t gfp_mask,
 struct sk_buff * skb);
 

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

Description

Allocate a new page.

NULL is returned if there is no free memory.