rpc_update_rtt(9)
π 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 π
- kernel file
./net/sunrpc/timer.c rpc_init_rtt(9)β the setup girly π§rpc_calc_rto(9)β the one that does the timeout math π
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
- 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