---
name: "gnet_stats_finish_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_finish_copy"
---

# gnet\_stats\_finish\_copy(9)

finish dumping procedure

## NAME

gnet\_stats\_finish\_copy - finish dumping procedure

## SYNOPSIS

**int gnet\_stats\_finish\_copy(struct gnet\_dump \*** *d***);**

## ARGUMENTS

*d*

dumping handle

## DESCRIPTION

Corrects the length of the top level TLV to include all TLVs added by **gnet\_stats\_copy\_XXX** calls. Adds the backward compatibility TLVs if **gnet\_stats\_start\_copy\_compat** was used and releases the statistics lock.

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

## COPYRIGHT
