---
name: "skb_cow_data"
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_cow_data"
---

# skb\_cow\_data(9)

Check that a socket buffer's data buffers are writable

## NAME

skb\_cow\_data - Check that a socket buffer's data buffers are writable

## SYNOPSIS

**int skb\_cow\_data(struct sk\_buff \*** *skb***, int** *tailbits***, struct sk\_buff \*\*** *trailer***);**

## ARGUMENTS

*skb*

The socket buffer to check.

*tailbits*

Amount of trailing space to be added

*trailer*

Returned pointer to the skb where the *tailbits* space begins

## DESCRIPTION

Make sure that the data buffers attached to a socket buffer are writable. If they are not, private copies are made of the data buffers and the socket buffer is set to use these instead.

If *tailbits* is given, make sure that there is space to write *tailbits* bytes of data beyond current end of socket buffer. *trailer* will be set to point to the skb in which this space begins.

The number of scatterlist elements required to completely map the COW'd and extended socket buffer will be returned.

## COPYRIGHT
