table of contents
other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
SKB_CLONE_SK(9) | Linux Networking | SKB_CLONE_SK(9) |
NAME¶
skb_clone_sk - create clone of skb, and take reference to socketSYNOPSIS¶
struct sk_buff *
skb_clone_sk(struct sk_buff * skb);
ARGUMENTS¶
skbthe skb to clone
DESCRIPTION¶
This function creates a clone of a buffer that holds a reference on sk_refcnt. Buffers created via this function are meant to be returned using sock_queue_err_skb, or free via kfree_skb. When passing buffers allocated with this function to sock_queue_err_skb it is necessary to wrap the call with sock_hold/sock_put in order to prevent the socket from being released prior to being enqueued on the sk_error_queue.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 4.9. |