bpf_put_mem_cgroup(9)
β¨ NAME β¨
okay so bestie, welcome to bpf_put_mem_cgroup(9) from the Kernel API Manual β this one is all about putting a reference to a memory cgroup. Put, as in release it. Cleanup era. π
β¨ SYNOPSIS β¨
__bpf_kfunc void bpf_put_mem_cgroup (struct mem_cgroup *memcg );
π ARGUMENTS π
memcgβ the memory cgroup you're releasing, bestie. Let it gooo. π¦
π DESCRIPTION π
So this function releases a previously acquired memcg reference. Implements KF_RELEASE semantics. That's the whole vibe β it's giving reference cleanup, main character energy, and honestly? Iconic. β¨
no cap, this is the release-side bestie: previously acquired reference goes bye. π«Ά
π SEE ALSO π
- Kernel file
./mm/bpf_memcontrol.c bpf_get_root_mem_cgroup(9)bpf_get_mem_cgroup(9)bpf_mem_cgroup_vm_events(9)bpf_mem_cgroup_usage(9)bpf_mem_cgroup_memory_events(9)bpf_mem_cgroup_page_state(9)bpf_mem_cgroup_flush_stats(9)
that's the page, bestie π β source/version ./mm, dated October 2026. go forth and release that reference responsibly ππ
π¦ 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