---
name: "gnet_stats_copy_app"
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_copy_app"
---

# gnet\_stats\_copy\_app(9)

copy application specific statistics into statistics TLV

## NAME

gnet\_stats\_copy\_app - copy application specific statistics into statistics TLV

## SYNOPSIS

**int gnet\_stats\_copy\_app(struct gnet\_dump \*** *d***, void \*** *st***, int** *len***);**

## ARGUMENTS

*d*

dumping handle

*st*

application specific statistics data

*len*

length of data

## DESCRIPTION

Appends the application specific statistics to the top level TLV created by **gnet\_stats\_start\_copy** and remembers the data for XSTATS if the dumping handle is in backward compatibility mode.

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

## COPYRIGHT
