---
name: "gen_replace_estimator"
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/gen_replace_estimator"
---

# gen\_replace\_estimator(9)

replace rate estimator configuration

## NAME

gen\_replace\_estimator - replace rate estimator configuration

## SYNOPSIS

**int gen\_replace\_estimator(struct gnet\_stats\_basic\_packed \*** *bstats***, struct gnet\_stats\_basic\_cpu \_\_percpu \*** *cpu\_bstats***, struct gnet\_stats\_rate\_est64 \*** *rate\_est***, spinlock\_t \*** *stats\_lock***, seqcount\_t \*** *running***, struct nlattr \*** *opt***);**

## ARGUMENTS

*bstats*

basic statistics

*cpu\_bstats*

bstats per cpu

*rate\_est*

rate estimator statistics

*stats\_lock*

statistics lock

*running*

qdisc running seqcount (might be NULL)

*opt*

rate estimator configuration TLV

## DESCRIPTION

Replaces the configuration of a rate estimator by calling **gen\_kill\_estimator** and **gen\_new\_estimator**.

Returns 0 on success or a negative error code.

## COPYRIGHT
