---
name: "zerocopy_sg_from_iter"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/zerocopy_sg_from_iter"
---

# zerocopy\_sg\_from\_iter(9)

Build a zerocopy datagram from an iov\_iter

## NAME

zerocopy\_sg\_from\_iter - Build a zerocopy datagram from an iov\_iter

## SYNOPSIS

**int zerocopy\_sg\_from\_iter(struct sk\_buff \*** *skb***, struct iov\_iter \*** *from***);**

## ARGUMENTS

*skb*

buffer to copy

*from*

the source to copy from

## DESCRIPTION

The function will first copy up to headlen, and then pin the userspace pages and build frags through them.

Returns 0, -EFAULT or -EMSGSIZE.

## COPYRIGHT
