rpc_update_rtt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rpc_update_rtt(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so real talk: this is a page from the Kernel API Manual, section 9, and the star of the show is rpc_update_rtt(9). yes it's a mouthful, no you don't have to say it out loud. let's get into it ✨


🌸 NAME 🌸

rpc_update_rtt β€” update an RPC RTT estimator context, periodt πŸ’–

✨ SYNOPSIS ✨

void rpc_update_rtt (struct rpc_rtt *rt , unsigned int timer , long m );

that's the whole vibe. no return value, it just does the thing 🫢

πŸ¦‹ ARGUMENTS πŸ¦‹

  • rt β€” the context you're updating. like, the little state blob that's about to get a glow-up πŸ’…
  • timer β€” the index into the timer array, aka which request type we're talking about πŸ”₯
  • m β€” the recent actual RTT, measured in jiffies, no cap ⏱️

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the one thing you cannot skip, bestie β€” read it twice:

NB: when you're computing the smoothed RTT and the standard deviation, be careful not to produce negative intermediate results. 🚨

like, the math is giving "trust me bro" energy and if you let it go negative mid-computation you're gonna have a bad time 😭 so watch those intermediate values, fr fr.

🌈 SEE ALSO 🌈


and that's the whole page, you ate that πŸ’…βœ¨

cute little sign-off for the credits: this one lives under ./net/sunrpc and it's stamped October 2026 πŸ“ see you in the group chat 🫢

πŸ“¦ where this page comes from