'\" t .\" Title: gnet_stats_copy_basic .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "GNET_STATS_COPY_BASI" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "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_basic \- copy basic statistics into statistic TLV .SH "SYNOPSIS" .HP \w'int\ gnet_stats_copy_basic('u .BI "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" ");" .SH "ARGUMENTS" .PP \fIrunning\fR .RS 4 seqcount_t pointer .RE .PP \fId\fR .RS 4 dumping handle .RE .PP \fIcpu\fR .RS 4 copy statistic per cpu .RE .PP \fIb\fR .RS 4 basic statistics .RE .SH "DESCRIPTION" .PP Appends the basic statistics to the top level TLV created by \fBgnet_stats_start_copy\fR\&. .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