sk_rmem_alloc_get(9)
π sk_rmem_alloc_get(9) π
okay so bestie, welcome to the Kernel API Manual β this one is a tiny lil page about a tiny lil getter, and honestly? it's giving "one-line function that carries the whole socket on its back" β¨
πΈ NAME πΈ
sk_rmem_alloc_get β returns read allocations π
like, that's it. that's the whole job. it gets you the read allocations. slay.
β¨ SYNOPSIS β¨
int sk_rmem_alloc_get (const struct sock *sk );
she's short, she's sweet, she takes exactly one pointer and hands you back an int β no cap π
π¦ ARGUMENTS π¦
skβ socket π₯ literally just the socket. that's the whole argument. the vibes are immaculate, the parameter list is minimal.
β RETURN β
sk_rmem_alloc π«Ά
yes bestie, it returns sk_rmem_alloc β the read allocations, exactly like the NAME said. the prophecy was true all along π π
π SEE ALSO π
so many friends in the group chat, all from the kernel file ./include/net/sock.h:
struct sock_common(9)struct sock(9)sk_user_data_is_nocopy(9)__locked_read_sk_user_data_with_flags(9)__rcu_dereference_sk_user_data_with_flags(9)sk_for_each_entry_offset_rcu(9)SOCK_CONNECT_BIND(9)lock_sock_fast(9)unlock_sock_fast(9)sk_wmem_alloc_get(9)sk_has_allocations(9)skwq_has_sleeper(9)sock_poll_wait(9)sk_page_frag(9)_sock_tx_timestamp(9)sk_eat_skb(9)
ngl that's a whole squad β go read them too, they're all living in ./include/net/sock.h and they all ate ππ
okay bye bestie, this page came from ./include/net and it's dated October 2026 β screenshot it, memorise it, live by it π§ββοΈπ π
π¦ 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