sock_unregister(9)
π sock_unregister(9) π
okay bestie, welcome to the Kernel API Manual page for sock_unregister(9). yes, the kernel manual, and this one is short, sweet, and very βremove me from the group chat.β β¨
πΈ NAME πΈ
<pink>sock_unregister</pink> β remove a protocol handler. thatβs it, thatβs the vibe. π
β SYNOPSIS β
void sock_unregister (int family );
π ARGUMENTS π
familyβ protocol family to remove. yep, the one being unlinked from new socket creation. π¦
π¦ DESCRIPTION π¦
This function is called by a protocol handler that wants to remove its address family, and have it unlinked from the new socket creation. no cap, itβs the kernel-networking equivalent of βplease take me off the list.β π
If the protocol handler is a module, then it can use module reference counts to protect against new references. If the protocol handler is not a module, then it needs to provide its own protection in the ops->create routine. that part is important, bestie β donβt skip the safety era. π«Ά
π₯ SEE ALSO π₯
over in the kernel file ./net/socket.c, this page is pointing at the whole squad:
move_addr_to_kernel(9)move_addr_to_user(9)sock_read_xattr(9)sock_alloc_file(9)sock_from_file(9)sockfd_lookup(9)sock_alloc(9)sock_release(9)sock_sendmsg(9)kernel_sendmsg(9)sock_recvmsg(9)kernel_recvmsg(9)sock_create_lite(9)__sock_create(9)sock_create(9)sock_create_kern(9)sock_register(9)kernel_bind(9)kernel_listen(9)kernel_accept(9)kernel_connect(9)kernel_getsockname(9)kernel_getpeername(9)kernel_sock_shutdown(9)kernel_sock_ip_overhead(9)
and thatβs the page, bestie. source/version: ./net; date: October 2026; title: sock_unregister(9). mwah πβ¨
π¦ 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