STRUCT RDTGROUP(9)
π 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β theclosidfor 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 acquirerdtgroup_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 whenmba_scis 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
- 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