sock_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, this is the sock_release(9) page from the Kernel API Manual β€” and it does exactly what it says on the tin: sock_release closes a socket. periodt πŸ’…

✨ SYNOPSIS ✨

void sock_release (struct socket *sock );

πŸŽ€ ARGUMENTS πŸŽ€

  • sock β€” the socket to close. that's the whole arg, no cap 🫢

🌸 DESCRIPTION 🌸

here's the lowkey tea: the socket gets released from the protocol stack if it has a release callback. then the inode is released if the socket is bound to an inode, not a file. that's the behavior, fr fr πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./net/socket.c

the whole squad is here:


Source/version/date: ./net, October 2026, on sock_release(9) β€” bye bestie, go close those sockets responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from