---
name: "gnet_stats_copy_basic"
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_basic"
---

# gnet\_stats\_copy\_basic(9)

copy basic statistics into statistic TLV

## NAME

gnet\_stats\_copy\_basic - copy basic statistics into statistic TLV

## SYNOPSIS

**int gnet\_stats\_copy\_basic(const seqcount\_t \*** *running***, struct gnet\_dump \*** *d***, struct gnet\_stats\_basic\_cpu \_\_percpu \*** *cpu***, struct gnet\_stats\_basic\_packed \*** *b***);**

## ARGUMENTS

*running*

seqcount\_t pointer

*d*

dumping handle

*cpu*

copy statistic per cpu

*b*

basic statistics

## DESCRIPTION

Appends the basic statistics to the top level TLV created by **gnet\_stats\_start\_copy**.

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

## COPYRIGHT
