bpf_ksock_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 through queue_rcu_work because sock_release may sleep. that detail is iconic and important. 😭

🌈 SEE ALSO 🌈


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