.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "GNET_STATS_FINISH_COPY" "9" "09 October 2005" "" ""
.SH NAME
gnet_stats_finish_copy \- finish dumping procedure
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int gnet_stats_finish_copy (struct gnet_dump * \fId\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fId\fB\fR
dumping handle
.SH "DESCRIPTION"
.PP
Corrects the length of the top level TLV to include all TLVs added
by \fBgnet_stats_copy_XXX\fR calls. Adds the backward compatibility TLVs
if \fBgnet_stats_start_copy_compat\fR was used and releases the statistics
lock.
.PP
Returns 0 on success or -1 with the statistic lock released
if the room in the socket buffer was not sufficient.