sk_has_allocations(9)
π NAME π
okay so this is sk_has_allocations(9) from the Kernel API Manual, and it is literally the page for checking if allocations are outstanding π no cap.
sk_has_allocations β check if allocations are outstanding β¨
π SYNOPSIS π
bool sk_has_allocations (const struct sock *sk );
it's giving βone const struct sock *sk, one bool resultβ energy π«Ά
π¦ ARGUMENTS π¦
skβ socket π§¦
πΈ RETURN πΈ
true if the socket has write or read allocations, periodt π
π₯ SEE ALSO π₯
Kernel file ./include/net/sock.h is the spot π and the whole squad is:
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_rmem_alloc_get(9)skwq_has_sleeper(9)sock_poll_wait(9)sk_page_frag(9)_sock_tx_timestamp(9)sk_eat_skb(9)
mwah π β source/version ./include/net, date October 2026, and this sk_has_allocations(9) page π«Ά
π¦ 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