'\" t .\" Title: gnet_stats_copy_app .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "GNET_STATS_COPY_APP" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" gnet_stats_copy_app \- copy application specific statistics into statistics TLV .SH "SYNOPSIS" .HP \w'int\ gnet_stats_copy_app('u .BI "int gnet_stats_copy_app(struct\ gnet_dump\ *\ " "d" ", void\ *\ " "st" ", int\ " "len" ");" .SH "ARGUMENTS" .PP \fIstruct gnet_dump * d\fR .RS 4 dumping handle .RE .PP \fIvoid * st\fR .RS 4 application specific statistics data .RE .PP \fIint len\fR .RS 4 length of data .RE .SH "DESCRIPTION" .PP Appends the application specific statistics to the top level TLV created by \fBgnet_stats_start_copy\fR and remembers the data for XSTATS if the dumping handle is in backward compatibility mode\&. .PP Returns 0 on success or \-1 with the statistic lock released if the room in the socket buffer was not sufficient\&. .SH "COPYRIGHT" .br