dmem_cgroup_below_min(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 pass NULL and 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 ⭐

  • true if usage is below min and the cgroup is protected πŸ’š
  • false otherwise 😭

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:


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