bpf_ksock_release(9)
π NAME π
okay bestie, welcome to bpf_ksock_release(9) from the Kernel API Manual β this page is literally about releasing a BPF kernel socket. The name is bpf_ksock_release: release a BPF kernel socket. slay. β¨
πΈ SYNOPSIS πΈ
__bpf_kfunc void bpf_ksock_release (struct bpf_ksock *ks );
that's the whole signature, no cap. π
π¦ ARGUMENTS π¦
ksβ the BPF kernel socket context you're releasing. that's the one, bestie.
π DESCRIPTION π
so here's the vibe: when the final reference is released, the socket gets cleaned up via queue_rcu_work β and yes, that's because sock_release may sleep. periodt. π«Ά
the cleanup is not direct, okay? it goes throughqueue_rcu_workbecausesock_releasemay sleep. that detail is iconic and important. π
π SEE ALSO π
- Kernel file
./net/core/bpf_ksock.c struct bpf_ksock(9)bpf_ksock_create(9)bpf_ksock_connect(9)bpf_ksock_acquire(9)bpf_ksock_send(9)
okay bestie, that's the page π bpf_ksock_release(9) comes from source/version ./net/core, dated October 2026. mwah π«Άπ
π¦ 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