dmem_cgroup_uncharge(9)
π NAME
okay bestie, welcome to dmem_cgroup_uncharge(9) from the Kernel API Manual β¨. This one is literally all about how you uncharge a pool π«Ά.
β¨ SYNOPSIS β¨
void dmem_cgroup_uncharge (struct dmem_cgroup_pool_state *pool , u64
size );
π ARGUMENTS π
poolβ the pool you're uncharging, bestie π«§.sizeβ the size you're uncharging, no cap π.
π¦ DESCRIPTION π¦
So this is the undo button for dmem_cgroup_try_charge ππ. It undoes the effects of dmem_cgroup_try_charge.
Heads up, queen: you must call it with the returned pool as the argument, and with the same index and size. Same index, same size β keep that energy exact π .
π SEE ALSO π
Kernel file ./kernel/cgroup/dmem.c is right here with the whole squad:
dmem_cgroup_state_evict_valuable(9)dmem_cgroup_unregister_region(9)dmem_cgroup_register_region(9)dmem_cgroup_pool_state_put(9)dmem_cgroup_try_charge(9)dmem_cgroup_below_min(9)dmem_cgroup_below_low(9)dmem_cgroup_get_common_ancestor(9)
mwah π this page is from source ./kernel/cgroup, dated October 2026. periodt.
π¦ 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