---
name: "alloc_skb_with_frags"
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_skb_with_frags"
---

# alloc\_skb\_with\_frags(9)

allocate skb with page frags

## NAME

alloc\_skb\_with\_frags - allocate skb with page frags

## SYNOPSIS

**struct sk\_buff \* alloc\_skb\_with\_frags(unsigned long** *header\_len***, unsigned long** *data\_len***, int** *max\_page\_order***, int \*** *errcode***, gfp\_t** *gfp\_mask***);**

## ARGUMENTS

*header\_len*

size of linear part

*data\_len*

needed length in frags

*max\_page\_order*

max page order desired.

*errcode*

pointer to error code if any

*gfp\_mask*

allocation mask

## DESCRIPTION

This can be used to allocate a paged skb, given a maximal order for frags.

## COPYRIGHT
