STRUCT MISC_RES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct misc_res(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this little page is all about struct misc_res β€” literally the per cgroup per misc type resource situation. yes, per cgroup AND per misc type. both. at once. she contains multitudes 🫢


🌸 NAME 🌸

struct misc_res β€” the per-cgroup, per-misc-type resource struct. that's the whole vibe check: one of these lives for each cgroup Γ— each misc type combo πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

struct misc_res {
    u64 max;
    atomic64_t watermark;
    atomic64_t usage;
    atomic64_t events;
    atomic64_t events_local;
 };

look at her. five fields, four of them atomic64_t, one humble u64. iconic honestly πŸ”₯


πŸ¦‹ Members πŸ¦‹

here's the group chat roll call, one bullet per member, no gatekeeping:

  • max β€” the maximum limit on the resource. the ceiling. the "you shall not pass" number πŸ‘‘ it's a u64.
  • watermark β€” the historical maximum usage of the resource. like a screenshot of her peak era, kept forever πŸ“Έ it's an atomic64_t.
  • usage β€” the current usage of the resource. the right-now number, the live feed, the main character πŸ’« it's an atomic64_t.
  • events β€” the number of times the resource limit was exceeded. the counter of chaos. every time somebody pushed past max, this baby noticed πŸ’€ it's an atomic64_t.
ngl, the struct in the synopsis also has events_local in there β€” this page doesn't give it its own member blurb, so i'm not gonna make one up. she's listed, she's real, that's all we're told 🫢

🌈 SEE ALSO 🌈

all up in the kernel file ./include/linux/misc_cgroup.h β€” go read the whole friend group, they're all connected fr fr 🧚


and that's the page bestie ✨ this one's straight out of ./include/linux, from October 2026 β€” the struct misc_res(9) era. go forth and read your cgroup misc resources with confidence πŸ’œπŸŽ€

πŸ“¦ where this page comes from