---
name: "skb_copy_datagram_from_iovec"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/skb_copy_datagram_from_iovec"
---

# skb\_copy\_datagram\_from\_iovec(9)

Copy a datagram from an iovec.

## NAME

skb\_copy\_datagram\_from\_iovec - Copy a datagram from an iovec.

## SYNOPSIS

**int skb\_copy\_datagram\_from\_iovec(struct sk\_buff \*** *skb***, int** *offset***, const struct iovec \*** *from***, int** *from\_offset***, int** *len***);**

## ARGUMENTS

*skb*

buffer to copy

*offset*

offset in the buffer to start copying to

*from*

io vector to copy to

*from\_offset*

offset in the io vector to start copying from

*len*

amount of data to copy to buffer from iovec

## DESCRIPTION

Returns 0 or -EFAULT.

## NOTE

the iovec is not modified during the copy.

## COPYRIGHT
