inet_twsk_bind_unhash(9)
β¨ 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
- 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