1SKB_COPY_UBUFS(9) Linux Networking SKB_COPY_UBUFS(9)
2
3
4
6 skb_copy_ubufs - copy userspace skb frags buffers to kernel
7
9 int skb_copy_ubufs(struct sk_buff * skb, gfp_t gfp_mask);
10
12 skb
13 the skb to modify
14
15 gfp_mask
16 allocation priority
17
19 This must be called on SKBTX_DEV_ZEROCOPY skb. It will copy all frags
20 into kernel and drop the reference to userspace pages.
21
22 If this function is called from an interrupt gfp_mask must be
23 GFP_ATOMIC.
24
25 Returns 0 on success or a negative error code on failure to allocate
26 kernel memory to copy to.
27
29Kernel Hackers Manual 3.10 June 2019 SKB_COPY_UBUFS(9)