inet_twsk_bind_unhash(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ inet_twsk_bind_unhash πŸ’…

ok so bestie, this is the manual page for inet_twsk_bind_unhash β€” it's a Kernel API Manual situation, and honestly? she's a tiny little function with a big job πŸŽ€


🌸 NAME 🌸

inet_twsk_bind_unhash β€” unhash a timewait socket from bind hash

literally what it says on the tin, no cap ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void inet_twsk_bind_unhash (struct inet_timewait_sock *tw , struct
inet_hashinfo *hashinfo );

that's the whole signature, bestie β€” copy it exactly, void, two args, done 🫢


πŸ’– ARGUMENTS πŸ’–

  • tw β€” timewait socket. this is the little guy getting unhashed πŸ₯Ί
  • hashinfo β€” hashinfo pointer. yes, a pointer to hashinfo. she's pointing at the hash info. iconic behavior πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• β€” this function unhashes a timewait socket from the bind hash, if it's hashed. that "if" is doing a lot of work, so clock it πŸ‘‘

⚠️ the bind hash lock must be held by caller. like, that's on you, not on her. no lock, no service 😭

and here's the lil plot twist: it returns 1 if the caller should call inet_twsk_put after lock release. so yeah β€” check the return value, bestie, and go call inet_twsk_put once you've released the lock. that's the whole vibe check πŸ’€βœ¨


🌈 SEE ALSO 🌈

  • Kernel file ./net/ipv4/inet_timewait_sock.c β€” go read the source, iykyk πŸ“–πŸ¦‹

and that's the page!! πŸ’œ this one's from ./net/ipv4, dated October 2026, and it's the inet_twsk_bind_unhash(9) manual β€” go forth and unhash responsibly, bestie πŸ§šβ€β™€οΈβ­πŸŽ€

πŸ“¦ where this page comes from