gen_new_estimator(9)
β¨ NAME β¨
okay so bestie, welcome to the gen_new_estimator(9) page in the Kernel API Manual β and this one is literally about creating a new rate estimator. iconic behavior, no cap.
πΈ SYNOPSIS πΈ
int gen_new_estimator (struct gnet_stats_basic_sync *bstats , struct
gnet_stats_basic_sync __percpu *cpu_bstats , struct net_rate_estimator
__rcu **rate_est , spinlock_t *lock , bool running , struct nlattr *opt
);
π ARGUMENTS π
bstatsβ basic statistics. the source stats, periodt.cpu_bstatsβbstatsper cpu.rate_estβ rate estimator statistics.lockβ lock for statistics and control path.runningβtrueifbstatsrepresents a running qdisc, thusbstats' internal values might change during basic reads. Only used ifbstats_cpuis NULL. the way that detail matters, bestie.optβ rate estimator configuration TLV.
π¦ DESCRIPTION π¦
okay so it creates a new rate estimator with bstats as source and rate_est as destination. A new timer with the interval specified in the configuration TLV is created β timer main character energy, honestly. Upon each interval, the latest statistics will be read from bstats and the estimated rate will be stored in rate_est with the statistics lock grabbed during this period. slay.
Returns 0 on success or a negative error code. periodt.
π SEE ALSO π
Kernel file ./net/core/gen_estimator.c β plus the related crew: gen_kill_estimator(9), gen_replace_estimator(9), and gen_estimator_active(9). iykyk π
source/version vibes: ./net/core π«Ά date: October 2026 β¨ and this page is gen_new_estimator(9). mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms