gen_new_estimator(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” bstats per cpu.
  • rate_est β€” rate estimator statistics.
  • lock β€” lock for statistics and control path.
  • running β€” true if bstats represents a running qdisc, thus bstats' internal values might change during basic reads. Only used if bstats_cpu is 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