tcp_lp_rtt_sample(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tcp_lp_rtt_sample(9)

okay so welcome to the Kernel API Manual bestie, today we're looking at tcp_lp_rtt_sample and honestly? she's a little mysterious. ✨


πŸŽ€ NAME πŸŽ€

tcp_lp_rtt_sample β€” and that's it. no description. no explanation. just vibes. (the original page really does leave this blank, so we're matching energy 🫢)


🌸 SYNOPSIS 🌸

void tcp_lp_rtt_sample (struct sock *sk , u32 rtt );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • sk β€” the socket you're adding a rtt sample to. this is the one doing the actual work, main character energy fr πŸ’…
  • rtt β€” the round trip time… which is ignored! 😭 like why are you even here bestie. she's invited to the party and then completely ignored ngl.

⭐ DESCRIPTION ⭐

so this is the implementation of rtt_sample. here's the whole little routine, step by step:

  1. calc OWD (one-way delay, iykyk) ✨
  2. record the min/max OWD β€” gotta keep track of the range 🌈
  3. calc the smoothed OWD (SOWD) β€” the glow-up version of your OWD πŸ’–

and the tea: most ideas come straight from the original TCP-LP implementation. no cap, that's where the inspo lives πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

kernel file ./net/ipv4/tcp_lp.c is where the whole squad hangs out, and here's everyone:

go read their pages too, they ate and left no crumbs πŸ’€πŸ§š


aaaand that's the whole page bestie 🫢 this little icon lives in ./net/ipv4, dated October 2026, and if you ever need to find her again just yell tcp_lp_rtt_sample(9) into the void and she'll appear πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from