sk_set_memalloc(9)
okay bestie, welcome to the Kernel API Manual page for sk_set_memalloc(9) β it's short, it's sweet, and it's lowkey important. Let's go π
β¨
π NAME π
sk_set_memalloc β sets %SOCK_MEMALLOC
πΈ SYNOPSIS πΈ
void sk_set_memalloc (struct sock *sk );
π ARGUMENTS π
skβ the socket to set it on π«Ά
π₯ DESCRIPTION π₯
Set SOCK_MEMALLOC on a socket for access to emergency reserves β¨. It's the responsibility of the admin to adjust min_free_kbytes to meet the requirements β yes, admin bestie, that's on you π.
π SEE ALSO π
Kernel file to peek at: ./net/core/sock.c π
sk_ns_capable(9)sk_capable(9)sk_net_capable(9)sk_alloc(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)
that's the whole page, bestie π it comes from the source/version tag ./net/core, dated October 2026 β slay, stay iconic, and keep those emergency reserves in check π
π¦ 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