tcp_orphan_retries(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a bool, 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:

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