tcp_retransmit_timer(9)
π tcp_retransmit_timer(9) β kernel API manual, but make it make sense
okay so bestie, welcome to tcp_retransmit_timer(9) β that's section 9 of the Kernel API Manual, aka the deep-internals zone where only the brave (and the network stack girlies) hang out. pull up a chair, we're talking about the TCP retransmit timeout handler and honestly? it's lowkey iconic. β¨
πΈ NAME πΈ
tcp_retransmit_timer β literally the TCP retransmit timeout handler. that's her. that's the whole vibe. π
π SYNOPSIS π
void tcp_retransmit_timer (struct sock *sk );
no cap, that's the whole signature. copy it exactly, don't get cute with it.
π¦ ARGUMENTS π¦
skβ a pointer to the current socket. yeah, just the one. she's the main character of this function, everything revolves around her. π
π₯ DESCRIPTION π₯
so here's the tea: this function gets called when the kernel timer for a TCP packet of this socket expires. the clock ran out, the vibe check failed, and now somebody's gotta deal with it β and that somebody is tcp_retransmit_timer.
what does she actually do while she's there? three things, periodt:
- she handles retransmission (the packet's getting another shot, fr fr)
- she handles timer adjustment (the timing gets reworked)
- she handles other necessary measures (the rest of the grown-up business that keeps the whole thing from falling apart) π«Ά
it's giving main character energy, honestly β one expired timer and she's out here keeping everything together. π
β RETURN β
nothing. literally nothing. she returns void.
no value, no exit code, no little note in your inbox. she does the work and dips. π
π SEE ALSO π
the kernel file ./net/ipv4/tcp_timer.c β that's where the magic lives, go read her:
tcp_write_err(9)tcp_out_of_resources(9)tcp_orphan_retries(9)retransmits_timed_out(9)tcp_delack_timer(9)
iykyk, these are the whole friend group. go say hi. π§
fair warning bestie: this is kernel-level code β no hand-holding, no guardrails, no "are you sure?" popup. know what you're doing before you go poking at timers. π
okay that's the page!! π this little masterpiece lives in ./net/ipv4 and it's dated October 2026 β so yeah, timestamped and everything, very official, very slay. mwah, go forth and retransmit responsibly. π
β¨π
π¦ 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