sk_wmem_alloc_get(9)
β¨ sk_wmem_alloc_get(9) β¨
okay bestie, welcome to the kernel API manual, this one's a little function called sk_wmem_alloc_get and honestly? she's short, she's sweet, she's giving "one-liner icon" π
πΈ NAME πΈ
sk_wmem_alloc_get β returns write allocations π
π¦ SYNOPSIS π¦
int sk_wmem_alloc_get (const struct sock *sk );
π ARGUMENTS π
skβ the socket π§ (yes that's the whole thing, she's a socket, that's her job)
β RETURN β
sk_wmem_alloc minus initial offset of one π₯
like, that's literally the math, no cap β take sk_wmem_alloc, subtract that initial offset of one, done, ship it β¨
π SEE ALSO π
okay this list is LONG, but we do not skip, we do not summarise, we read the whole group chat π all of these live in 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_rmem_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)
lowkey go read all of them, they're the friend group and they all slay in their own way π
and that's the whole page bestie, you ate that π«Ά this icon comes to you from the ./include/net corner of the kernel, stamped October 2026 β so like, fresh, current, main character energy π see you in the next manpage π
sk_wmem_alloc_get(9) π
π¦ 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