STRUCT MISC_RES(9)
β¨ 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 au64.watermarkβ the historical maximum usage of the resource. like a screenshot of her peak era, kept forever πΈ it's anatomic64_t.usageβ the current usage of the resource. the right-now number, the live feed, the main character π« it's anatomic64_t.eventsβ the number of times the resource limit was exceeded. the counter of chaos. every time somebody pushed pastmax, this baby noticed π it's anatomic64_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 π
enum misc_res_type(9)struct misc_cg(9)css_misc(9)
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
- 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