STRUCT MONGROUP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct mongroup(9) πŸ’–

okay so this is a page from the Kernel API Manual, section 9 β€” welcome bestie, we're learning about struct mongroup today and honestly? she's giving "small but mighty" ✨


🌸 NAME 🌸

struct mongroup β€” the struct whose whole job is to store mon group's data in resctrl fs. that's it. that's her purpose. iconic.


πŸŽ€ SYNOPSIS πŸŽ€

here's the whole vibe, laid out for u:

struct mongroup {
    struct kernfs_node      *mon_data_kn;
    struct rdtgroup         *parent;
    struct list_head        crdtgrp_list;
    u32 rmid;
 };

no cap, that's the entire thing. four members. she's compact πŸ’…


πŸ¦‹ Members πŸ¦‹

lowkey the important part, so pay attention bestie:

  • mon_data_kn β€” the kernfs node for the mon_data directory πŸ—‚οΈ
  • parent β€” the parent rdtgrp 🫢
  • crdtgrp_list β€” the child rdtgroup node list 🌈
  • rmid β€” the rmid for this rdtgroup πŸ”₯

⭐ SEE ALSO ⭐

go read these next, they're all in the kernel file ./fs/resctrl/internal.h β€” collect them all like lil trading cards, iykyk πŸ’€

  • cpumask_any_housekeeping(9)
  • struct mon_evt(9)
  • struct mon_data(9)
  • struct rmid_read(9)
  • enum rdtgrp_mode(9)
  • struct rdtgroup(9)
  • struct rftype(9)
  • struct mbm_state(9)

ngl this page has no OPTIONS, no exit statuses, no environment variables, no warnings β€” it's just a struct and her friends. sometimes that's all u need 🧚

and that's the whole page bestie, go forth and understand resctrl fs internals πŸ’œ

written for ./fs/resctrl, dated October 2026 β€” mwah, see u in the next manual page πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from