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

# gnet\_stats\_start\_copy(9)

start dumping procedure in compatibility mode

## NAME

gnet\_stats\_start\_copy - start dumping procedure in compatibility mode

## SYNOPSIS

**int gnet\_stats\_start\_copy(struct sk\_buff \*** *skb***, int** *type***, spinlock\_t \*** *lock***, struct gnet\_dump \*** *d***, int** *padattr***);**

## ARGUMENTS

*skb*

socket buffer to put statistics TLVs into

*type*

TLV type for top level statistic TLV

*lock*

statistics lock

*d*

dumping handle

*padattr*

padding attribute

## DESCRIPTION

Initializes the dumping handle, grabs the statistic lock and appends an empty TLV header to the socket buffer for use a container for all other statistic TLVS.

Returns 0 on success or -1 if the room in the socket buffer was not sufficient.

## COPYRIGHT
