cgroup_bpf_release_fn(9)
π cgroup_bpf_release_fn β the Kernel API Manual girlies know (section 9, bestie)
okay so first things first, this is cgroup_bpf_release_fn, and she lives in section 9 of the Kernel API Manual β yes, the manual manual, the one your prof swears you'll read someday π. and bestie, she's literally a callback. that's her whole thing. she's the one that gets called to schedule the releasing of bpf cgroup data π¦ no cap.
β¨ NAME β¨
cgroup_bpf_release_fn β callback used to schedule releasing of bpf cgroup data π«
likeβ¦ she's the scheduler of the releasing. not the releaser itself. the vibe is "hey, somebody should get around to freeing this" and then she goes back to her business. iconic behaviour honestly π
πΈ SYNOPSIS πΈ
void cgroup_bpf_release_fn (struct percpu_ref *ref );
that's it. that's the whole signature. one parameter, no return, void because she's not about to give you a value back, she's about to start something π₯
π«Ά ARGUMENTS π«Ά
refβ the percpu ref counter structure π that's it, that's the argument. it's astruct percpu_ref *, it's passed as a pointer, and it is the percpu ref counter structure. this is the thing she gets handed. lowkey the whole job.
π SEE ALSO π
bestie the cross-references here are a whole friend group, and they all live in the kernel file ./kernel/bpf/cgroup.c β go say hi to every single one, no skipping, i'll know π:
cgroup_bpf_release(9)cgroup_bpf_inherit(9)__cgroup_bpf_attach(9)__cgroup_bpf_replace(9)purge_effective_progs(9)__cgroup_bpf_detach(9)__cgroup_bpf_run_filter_skb(9)__cgroup_bpf_run_filter_sk(9)__cgroup_bpf_run_filter_sock_addr(9)__cgroup_bpf_run_filter_sock_ops(9)__cgroup_bpf_run_filter_sysctl(9)
like look at that list. attach, replace, detach, purge, and then a squad of __cgroup_bpf_run_filter_* girlies (skb, sk, sock_addr, sock_ops, sysctl β she collected them all π). read them. love them. iykyk π§
ngl if you got here from a stack trace at 3am, breathe. she's just a tiny callback doing her little scheduling moment. you're gonna be fine π
and that's the page!! brought to you from ./kernel/bpf, dated October 2026 β thanks for coming to my ted talk, 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