---
name: "skb_copy_and_csum_datagram_msg"
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/skb_copy_and_csum_datagram_msg"
---

# skb\_copy\_and\_csum\_datagram\_msg(9)

Copy and checksum skb to user iovec.

## NAME

skb\_copy\_and\_csum\_datagram\_msg - Copy and checksum skb to user iovec.

## SYNOPSIS

**int skb\_copy\_and\_csum\_datagram\_msg(struct sk\_buff \*** *skb***, int** *hlen***, struct msghdr \*** *msg***);**

## ARGUMENTS

*skb*

skbuff

*hlen*

hardware length

*msg*

destination

## DESCRIPTION

Caller \_must\_ check that skb will fit to this iovec.

## RETURN

0 - success. -EINVAL - checksum failure. -EFAULT - fault during copy.

## COPYRIGHT
