dmem_cgroup_below_min(9)
π dmem_cgroup_below_min π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function from the cgroup dmem world and it's literally just a yes/no vibe check on your memory usage π«Ά
β¨ NAME β¨
dmem_cgroup_below_min β the function that tests whether current usage is within the min limit. that's it, that's the whole job, and it does it slayfully π
πΈ SYNOPSIS πΈ
bool dmem_cgroup_below_min (struct dmem_cgroup_pool_state *root , struct
dmem_cgroup_pool_state *test );
it hands you back a bool, bestie. no drama, no side quests π
π ARGUMENTS π
rootβ the root of the subtree we're calculating protection for π³ orβ¦ you can passNULLand it'll calculate global protection instead. iconique flexible behaviour fr fr.testβ the pool we're actually testing the usage/min limit of π like, this is the one getting the vibe check.
β RETURN β
trueif usage is below min and the cgroup is protected πfalseotherwise π
that's the whole deal. below min + protected = true. anything else = false. periodt.
π¦ SEE ALSO π¦
the kernel file is ./kernel/cgroup/dmem.c β go read it, it's giving main character energy π
and here's the whole friend group of related functions, all linked up:
dmem_cgroup_state_evict_valuable(9)dmem_cgroup_unregister_region(9)dmem_cgroup_register_region(9)dmem_cgroup_pool_state_put(9)dmem_cgroup_uncharge(9)dmem_cgroup_try_charge(9)dmem_cgroup_below_low(9)dmem_cgroup_get_common_ancestor(9)
heads up bestie: this page came out of ./kernel/cgroup under the Kernel API Manual, dated October 2026 β so like, future vibes only π
β¨ mwah, go read the source, ily, bye π
π¦ 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