sk_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

welcome to sk_alloc(9), straight from the Kernel API Manual β€” this is the function where all socket objects are allocated, periodt. every single one. it’s giving main-character allocation energy ✨

✨ SYNOPSIS ✨

struct sock * sk_alloc (struct net *net , int family , gfp_t priority ,
       struct proto *prot , int kern );

πŸŽ€ ARGUMENTS πŸŽ€

  • net β€” the applicable net namespace, aka the vibe zone this socket belongs to 🌐
  • family β€” protocol family, no cap
  • priority β€” the priority for allocation (GFP_KERNEL, GFP_ATOMIC, etc) β€” literally the allocation mood flags πŸ’…
  • prot β€” the struct proto associated with this new sock instance 🫢
  • kern β€” is this to be a kernel socket? yes/no, bestie πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/core/sock.c β€” that’s the spot. then go say hi to these icons:


mwah πŸ’– source/version: ./net/core Β· date: October 2026 β€” sk_alloc(9) signing off, love u bestie πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from