'\" t .\" Title: gen_replace_estimator .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "GEN_REPLACE_ESTIMATO" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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" gen_replace_estimator \- replace rate estimator configuration .SH "SYNOPSIS" .HP \w'int\ gen_replace_estimator('u .BI "int gen_replace_estimator(struct\ gnet_stats_basic_packed\ *\ " "bstats" ", struct\ gnet_stats_rate_est64\ *\ " "rate_est" ", spinlock_t\ *\ " "stats_lock" ", struct\ nlattr\ *\ " "opt" ");" .SH "ARGUMENTS" .PP \fIbstats\fR .RS 4 basic statistics .RE .PP \fIrate_est\fR .RS 4 rate estimator statistics .RE .PP \fIstats_lock\fR .RS 4 statistics lock .RE .PP \fIopt\fR .RS 4 rate estimator configuration TLV .RE .SH "DESCRIPTION" .PP Replaces the configuration of a rate estimator by calling \fBgen_kill_estimator\fR and \fBgen_new_estimator\fR\&. .PP Returns 0 on success or a negative error code\&. .SH "COPYRIGHT" .br