dmem_cgroup...ister_region(9)
π dmem_cgroup_unregister_region(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this little page is all about dmem_cgroup_unregister_region, and honestly? it's a cleanup queen. she undoes the thing so you can safely free the stuff. main character energy, no cap π
πΈ NAME πΈ
dmem_cgroup_unregister_region β unregister a region that you already registered before. that's it, that's the vibe π
β¨ SYNOPSIS β¨
void dmem_cgroup_unregister_region (struct dmem_cgroup_region *region );
yeah she takes exactly one argument, no drama π«Ά
π¦ ARGUMENTS π¦
regionβ the region you want to unregister. the one you're breaking up with. it's giving "we're done here" π
π DESCRIPTION π
so here's the tea, bestie: this function is literally the undo button for dmem_cgroup_register_region π₯
the actually important part? she drains any in-flight reclaim callbacks before returning. like, she waits for every callback that's still mid-flight to finish before she walks out the door π
that means β and this is the part you screenshot β the caller may safely free the resources pointed to by the reclaim_priv that was passed at registration time. so after she returns, you're cleared to free that stuff π«Ά slay.
ngl, the "drains in-flight callbacks" bit is the whole point. don't be out here freeing reclaim_priv resources before this function comes back, okay? that's the whole safety guarantee and she did not do all that waiting for nothing π
π SEE ALSO π
kernel file ./kernel/cgroup/dmem.c
dmem_cgroup_state_evict_valuable(9)dmem_cgroup_register_region(9)dmem_cgroup_pool_state_put(9)dmem_cgroup_uncharge(9)dmem_cgroup_try_charge(9)dmem_cgroup_below_min(9)dmem_cgroup_below_low(9)dmem_cgroup_get_common_ancestor(9)
the whole cgroup crew, all linked, all iconic π
and that's the page, bestie!! π sourced from ./kernel/cgroup, dated October 2026 β go forth and unregister responsibly, 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