STRUCT GNET_STATS_RATE_EST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct gnet_stats_rate_est(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes we're reading kernel headers now, we contain multitudes ✨ this one is all about struct gnet_stats_rate_est, and honestly? it's giving "small but powerful." a whole rate estimator, right there in your uapi headers πŸŽ€


✨ NAME ✨

struct gnet_stats_rate_est β€” the rate estimator, periodt. that's literally the whole job πŸ’–


🌸 SYNOPSIS 🌸

struct gnet_stats_rate_est {
    __u32 bps;
    __u32 pps;
 };

look at her. two fields, zero drama, immaculate vibes πŸ¦‹


πŸ‘‘ Members πŸ‘‘

  • bps β€” the current byte rate πŸ’… like, how many bytes per second are we talking rn
  • pps β€” the current packet rate πŸŽ€ how many packets per second, same energy, different unit

two lil __u32s and they're both doing main character work, no cap πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/uapi/linux/gen_stats.h β€” the home base, go say hi 🌸
  • struct gnet_stats_basic(9)
  • struct gnet_stats_rate_est64(9)
  • struct gnet_stats_queue(9)
  • struct gnet_estimator(9)

it's a whole friend group fr fr, go read them all, iykyk πŸ’œ


okay that's the whole page bestie, go forth and estimate those rates 🧚 and hey β€” this lil masterpiece lives in ./include/uapi/linux, dated October 2026, and it's filed under struct gnet_stats_rate_est(9). slay, bye πŸ’–βœ¨πŸ«Ά

πŸ“¦ where this page comes from