tcp_orphan_retries(9)
π tcp_orphan_retries(9) β Kernel API Manual, but make it make sense
okay so bestie, welcome to tcp_orphan_retries β¨ this is a little kernel function β it lives in the kernel API manual (section 9, kernel-dev vibes) β and honestly? it does exactly one thing and it does it iconically.
πΈ NAME
tcp_orphan_retries β returns the maximal number of retries on an orphaned socket π«Ά
like... that's the whole job. an orphaned socket has been abandoned by its user, and this function tells you the max retry count for it. she's a numbers girlie and that's valid π
π¦ SYNOPSIS
int tcp_orphan_retries (struct sock *sk , bool alive );
not me showing you the exact signature so you don't fumble it π it returns int, takes a struct sock * and a bool, and yes the spacing is exactly like that. copy it character for character or don't come to me about it fr fr.
π ARGUMENTS
skβ pointer to the current socket π§ she's the main character here, obviously. handle with care, it's a pointer.aliveβ abool, the socket's alive state. literally just whether the socket is alive or not. no cap, that's the whole description.
π SEE ALSO
the kernel file ./net/ipv4/tcp_timer.c is where the magic lives, and it's bringing the whole friend group:
tcp_write_err(9)tcp_out_of_resources(9)retransmits_timed_out(9)tcp_delack_timer(9)tcp_retransmit_timer(9)
go read those too, they're all in their timer-era and honestly kind of slay β
bestie note: this page is short on purpose. no options, no exit statuses, no bugs listed β just a return value and the gworls in the see-also section. don't go looking for lore that isn't there π
and that's the whole page mwah π this little cutie comes from the ./net/ipv4 corner of the kernel and is dated October 2026 β same date stamp on the top and bottom of the original, so consider this your cute sign-off: tcp_orphan_retries(9), October 2026, ./net/ipv4 πβ¨
π¦ 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