table of contents
__PSKB_COPY_FCLONE(9) | Linux Networking | __PSKB_COPY_FCLONE(9) |
NAME¶
__pskb_copy_fclone - create copy of an sk_buff with private head.
SYNOPSIS¶
struct sk_buff * __pskb_copy_fclone(struct sk_buff * skb, int headroom, gfp_t gfp_mask, bool fclone);
ARGUMENTS¶
struct sk_buff * skb
int headroom
gfp_t gfp_mask
bool fclone
DESCRIPTION¶
Make a copy of both an &sk_buff and part of its data, located in header. Fragmented data remain shared. This is used when the caller wishes to modify only header of &sk_buff and needs private copy of the header to alter. Returns NULL on failure or the pointer to the buffer on success. The returned buffer has a reference count of 1.
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |