---
name: "gnet_stats_start_copy_compat"
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_compat"
---

# gnet\_stats\_start\_copy\_compat(9)

start dumping procedure in compatibility mode

## NAME

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

## SYNOPSIS

**int gnet\_stats\_start\_copy\_compat(struct sk\_buff \*** *skb***, int** *type***, int** *tc\_stats\_type***, int** *xstats\_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

*tc\_stats\_type*

TLV type for backward compatibility struct tc\_stats TLV

*xstats\_type*

TLV type for backward compatibility xstats 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.

The dumping handle is marked to be in backward compatibility mode telling all **gnet\_stats\_copy\_XXX** functions to fill a local copy of struct tc\_stats.

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

## COPYRIGHT
