skb_copy_ubufs9
Copy userspace skb frags buffers to kernel
Usage
int skb_copy_ubufs(struct sk_buff * skb, gfp_t gfp_mask);
Arguments
skb
the skb to modify
gfp_mask
allocation priority
Overview
This must be called on SKBTX_DEV_ZEROCOPY skb. It will copy all frags into kernel and drop the reference to userspace pages.
If this function is called from an interrupt gfp_mask must be GFP_ATOMIC.
Returns 0 on success or a negative error code on failure to allocate kernel memory to copy to.
Releases
2 releases since Debian 8 (Jessie); the text changed 1 time.