carta
skb_copy_ubufs(9)

skb_copy_ubufs9

Copy userspace skb frags buffers to kernel

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.

History

  • Debian 9 (Stretch): the text shown here
  • Debian 8 (Jessie)

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.