Query: skb_unshare
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
SKB_UNSHARE(9) Linux Networking SKB_UNSHARE(9)NAMEskb_unshare - make a copy of a shared bufferSYNOPSISstruct sk_buff * skb_unshare(struct sk_buff * skb, gfp_t pri);ARGUMENTSskb buffer to check pri priority for memory allocationDESCRIPTIONIf the socket buffer is a clone then this function creates a new copy of the data, drops a reference count on the old copy and returns the new copy with the reference count at 1. If the buffer is not a clone the original buffer is returned. When called with a spinlock held or from interrupt state pri must be GFP_ATOMIC NULL is returned on a memory allocation failure.COPYRIGHTKernel Hackers Manual 3.10 June 2014 SKB_UNSHARE(9)