---
name: "skb_append_datato_frags"
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_append_datato_frags"
---

# skb\_append\_datato\_frags(9)

append the user data to a skb

## NAME

skb\_append\_datato\_frags - append the user data to a skb

## SYNOPSIS

**int skb\_append\_datato\_frags(struct sock \*** *sk***, struct sk\_buff \*** *skb***, int (\****getfrag***) (void \*from, char \*to, int offset, int len, int odd, struct sk\_buff \*skb), void \*** *from***, int** *length***);**

## ARGUMENTS

*sk*

sock structure

*skb*

skb structure to be appended with user data.

*getfrag*

call back function to be used for getting the user data

*from*

pointer to user message iov

*length*

length of the iov message

## DESCRIPTION

This procedure append the user data in the fragment part of the skb if any page alloc fails user this procedure returns -ENOMEM

## COPYRIGHT
