STRUCT RMID_READ(9)
๐ NAME ๐
okay so bestie, this is the struct rmid_read(9) page from the Kernel API Manual, and itโs literally all about struct rmid_read โ Data passed across smp_call*() to read event count. no cap, thatโs the whole vibe. ๐
โจ SYNOPSIS โจ
hereโs the struct in all its glory โ copy it exactly, character for character:
struct rmid_read {
struct rdtgroup *rgrp;
struct rdt_resource *r;
struct rdt_domain_hdr *hdr;
struct mon_evt *evt;
bool first;
struct cacheinfo *ci;
bool is_mbm_cntr;
int err;
u64 val;
void *arch_mon_ctx;
};
๐ง Members ๐ง
rgrpโ the Resource group for which the counter is being read. If itโs a parent resource group, then its event count gets summed with the count from all its child resource groups. family reunion math, fr fr ๐rโ the Resource describing the properties of the event being read. itโs giving โwhat are we even readingโ energy.hdrโ Header of the domain that the counter should be read from. If itโsNULL, then sum all domains inrsharingL3 ci.id. okay periodt.evtโ Which monitor event to read. pick your fave, bestie.firstโ Initialize MBM counter whentrue. tiny but iconic.ciโ Cacheinfo for L3. Only set whenhdrisNULL. Used when summing domains. lowkey the helper for theNULLcase ๐ซถis_mbm_cntrโtrueif"mbm_event"counter assignment mode is enabled and it is an MBM event. yes, it said what it said ๐errโ Error encountered when reading counter. if this pops off, something went sideways ๐ญvalโ Returned value of event counter. Ifrgrpis a parent resource group,valincludes the sum of event counts from its child resource groups. IfhdrisNULL,valincludes the sum of all domains inrsharingci.id, (summed across child resource groups ifrgrpis a parent resource group). thatโs the whole tea โarch_mon_ctxโ Hardware monitor allocated for this read request (MPAM only). special guest star energy ๐
๐ฎ SEE ALSO ๐ฎ
go peek at the Kernel file ./fs/resctrl/internal.h, plus cpumask_any_housekeeping(9), struct mon_evt(9), struct mon_data(9), enum rdtgrp_mode(9), struct mongroup(9), struct rdtgroup(9), struct rftype(9), and struct mbm_state(9). iykyk ๐
mwah ๐ โ this page lives in ./fs/resctrl, stamped October 2026, and itโs literally struct rmid_read(9). bye bestie ๐ซถโจ
๐ฆ 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