---
name: "skb_copy_datagram_const_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_const_iovec"
---

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

Copy a datagram to an iovec.

## NAME

skb\_copy\_datagram\_const\_iovec - Copy a datagram to an iovec.

## SYNOPSIS

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

## ARGUMENTS

*skb*

buffer to copy

*offset*

offset in the buffer to start copying from

*to*

io vector to copy to

*to\_offset*

offset in the io vector to start copying to

*len*

amount of data to copy from buffer to iovec

## DESCRIPTION

Returns 0 or -EFAULT.

## NOTE

the iovec is not modified during the copy.

## COPYRIGHT
