---
name: "gnet_stats_copy_queue"
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_queue"
---

# gnet\_stats\_copy\_queue(9)

copy queue statistics into statistics TLV

## NAME

gnet\_stats\_copy\_queue - copy queue statistics into statistics TLV

## SYNOPSIS

**int gnet\_stats\_copy\_queue(struct gnet\_dump \*** *d***, struct gnet\_stats\_queue \_\_percpu \*** *cpu\_q***, struct gnet\_stats\_queue \*** *q***, \_\_u32** *qlen***);**

## ARGUMENTS

*d*

dumping handle

*cpu\_q*

per cpu queue statistics

*q*

queue statistics

*qlen*

queue length statistics

## DESCRIPTION

Appends the queue statistics to the top level TLV created by **gnet\_stats\_start\_copy**. Using per cpu queue statistics if they are available.

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

## COPYRIGHT
