skb_copy_datagram_const_iovec
Prev | Socket Buffer Functions | Next

## 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.

Prev | Up | Next
skb_copy_datagram_iovec | Home | skb_copy_datagram_from_iovec