table of contents
other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
SKB_SHARE_CHECK(9) | Linux Networking | SKB_SHARE_CHECK(9) |
NAME¶
skb_share_check - check if buffer is shared and if so clone itSYNOPSIS¶
struct sk_buff *
skb_share_check(struct sk_buff * skb,
gfp_t pri);
ARGUMENTS¶
skbbuffer to check
pri
priority for memory allocation
DESCRIPTION¶
If the buffer is shared the buffer is cloned and the old copy drops a reference. A new clone with a single reference is returned. If the buffer is not shared the original buffer is returned. When being called from interrupt status or with spinlocks held pri must be GFP_ATOMIC. NULL is returned on a memory allocation failure.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 4.9. |