sk_alloc(9)
π 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 cappriorityβ the priority for allocation (GFP_KERNEL,GFP_ATOMIC, etc) β literally the allocation mood flags πprotβ thestruct protoassociated 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:
sk_ns_capable(9)sk_capable(9)sk_net_capable(9)sk_set_memalloc(9)sk_clone(9)skb_page_frag_refill(9)sk_wait_data(9)__sk_mem_raise_allocated(9)__sk_mem_schedule(9)__sk_mem_reduce_allocated(9)__sk_mem_reclaim(9)
mwah π source/version: ./net/core Β· date: October 2026 β sk_alloc(9) signing off, love u 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