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

# skb\_clone(9)

duplicate an sk\_buff

## NAME

skb\_clone - duplicate an sk\_buff

## SYNOPSIS

**struct sk\_buff \* skb\_clone(struct sk\_buff \*** *skb***, gfp\_t** *gfp\_mask***);**

## ARGUMENTS

*skb*

buffer to clone

*gfp\_mask*

allocation priority

## DESCRIPTION

Duplicate an sk\_buff. The new one is not owned by a socket. Both copies share the same packet data but not structure. The new buffer has a reference count of 1. If the allocation fails the function returns **NULL** otherwise the new buffer is returned.

If this function is called from an interrupt **gfp\_mask** must be **GFP\_ATOMIC**.

## COPYRIGHT
