1SKB_COW_DATA(9)                Linux Networking                SKB_COW_DATA(9)
2
3
4

NAME

6       skb_cow_data - Check that a socket buffer´s data buffers are writable
7

SYNOPSIS

9       int skb_cow_data(struct sk_buff * skb, int tailbits,
10                        struct sk_buff ** trailer);
11

ARGUMENTS

13       skb
14           The socket buffer to check.
15
16       tailbits
17           Amount of trailing space to be added
18
19       trailer
20           Returned pointer to the skb where the tailbits space begins
21

DESCRIPTION

23       Make sure that the data buffers attached to a socket buffer are
24       writable. If they are not, private copies are made of the data buffers
25       and the socket buffer is set to use these instead.
26
27       If tailbits is given, make sure that there is space to write tailbits
28       bytes of data beyond current end of socket buffer.  trailer will be set
29       to point to the skb in which this space begins.
30
31       The number of scatterlist elements required to completely map the COW´d
32       and extended socket buffer will be returned.
33
35Kernel Hackers Manual 2.6.         June 2019                   SKB_COW_DATA(9)
Impressum