STRUCT RDTGROUP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct rdtgroup(9) β€” like, the whole entire vibe

okay bestie, so this is a page from the Kernel API Manual (that's the manual name, yes, we're fancy now πŸŽ€) and it's all about struct rdtgroup, which β€” per the NAME section β€” stores rdtgroup's data in resctrl file system. that's it. that's the whole point of its existence. main character struct energy fr fr πŸ‘‘


✨ SYNOPSIS ✨

here's the whole thing, exactly as it lives, do not touch, no notes:

struct rdtgroup {
    struct kernfs_node              *kn;
    struct list_head                rdtgroup_list;
    u32 closid;
    struct cpumask                  cpu_mask;
    int flags;
    atomic_t waitcount;
    enum rdt_group_type             type;
    struct mongroup                 mon;
    enum rdtgrp_mode                mode;
    enum resctrl_event_id           mba_mbps_event;
    struct pseudo_lock_region       *plr;
 };

lowkey gorgeous. she has structure. she has fields. we stan a well-organized struct 🌸


πŸ¦‹ Members πŸ¦‹

okay so now we go member by member, like a lil tour of the group chat πŸ’…

  • kn β€” the kernfs node. that's her little foothold in the filesystem world ✨
  • rdtgroup_list β€” linked list for all the rdtgroups. everyone's connected, it's giving group chat directory 🫢
  • closid β€” the closid for this rdtgroup. yes it's named the same as the field, no we're not confused, it's just like that 😭
  • cpu_mask β€” the CPUs assigned to this rdtgroup. which CPUs are in her orbit πŸ’«
  • flags β€” status bits. little mood indicators πŸ”₯
  • waitcount β€” how many cpus expect to find this group when they acquire rdtgroup_mutex. so literally a headcount of who's waiting at the door, no cap πŸšͺ
  • type β€” indicates type of this rdtgroup β€” either monitor only or ctrl_mon group. pick a lane, queen πŸ‘‘
  • mon β€” mongroup related data. the monitoring side of the operation πŸ“
  • mode β€” mode of resource group. what's her setting, what's her season 🌈
  • mba_mbps_event β€” input monitoring event id when mba_sc is enabled. only relevant when that's on, iykyk ⭐
  • plr β€” pseudo-locked region. locked, loaded, iconic πŸ’œ

🌸 SEE ALSO 🌸

go read these next, bestie, they're all part of the same little family:

  • Kernel file ./fs/resctrl/internal.h
  • cpumask_any_housekeeping(9)
  • struct mon_evt(9)
  • struct mon_data(9)
  • struct rmid_read(9)
  • enum rdtgrp_mode(9)
  • struct mongroup(9)
  • struct rftype(9)
  • struct mbm_state(9)

πŸ’€ tiny heads up, the SEE ALSO line literally reads "Kernel file ./fs/resctrl/internal.h" followed straight into the function list β€” so that's how we're doing it here too. periodt.

and that's the page 🧚 mwah πŸ’–

source/version: ./fs/resctrl β€” dated October 2026 β€” and the page is struct rdtgroup(9) itself, so like, it's self-titled, we love a self-aware icon πŸŽ€βœ¨

πŸ“¦ where this page comes from