resctrl_arch_config_cntr(9)
π resctrl_arch_config_cntr β kernel API manual, bestie edition β¨
okay so this is a page from the Kernel API Manual and it's all about resctrl_arch_config_cntr(9) β one function, and honestly? she's giving "small but mighty." let's get into it π
πΈ NAME πΈ
resctrl_arch_config_cntr β configure the counter with its new RMID and event details. that's the whole vibe. no cap. π
π¦ SYNOPSIS π¦
void resctrl_arch_config_cntr (struct rdt_resource *r , struct
rdt_l3_mon_domain *d , enum resctrl_event_id evtid , u32 rmid , u32
closid , u32 cntr_id , bool assign );
she takes seven args and returns nothing (void), which is so main character of her actually. π
β¨ ARGUMENTS β¨
rβ the resource structure. the whole resource. her context, her world. π«Άdβ the domain in which the counter with IDcntr_idshould be configured. like, where this counter is gonna live, you know? πevtidβ the monitoring event type (e.g.,QOS_L3_MBM_TOTAL_EVENT_IDorQOS_L3_MBM_LOCAL_EVENT_ID). yes those are the exact names, type them exactly, i'm watching πrmidβ RMID. that's it. that's the description. iconic minimalism honestly. βclosidβ CLOSID. again β just the name. we love a low-effort king πcntr_idβ the counter ID to configure. the girl herself π₯assignβtrueto assign the counter or update an existing assignment,falseto unassign the counter. binary queen π
π DESCRIPTION π
this can be called from any CPU. that's it. that's the whole section. she's flexible, she's portable, she does not care which CPU you're on πβ¨
π SEE ALSO π
the whole friend group, in the order they were invited to the group chat π β from the kernel file ./include/linux/resctrl.h:
enum resctrl_conf_type(9)struct resctrl_staged_config(9)struct rdt_domain_hdr(9)struct rdt_ctrl_domain(9)struct mbm_cntr_cfg(9)struct rdt_l3_mon_domain(9)struct resctrl_cache(9)enum membw_throttle_mode(9)struct resctrl_membw(9)enum resctrl_schema_fmt(9)struct resctrl_mon(9)struct rdt_resource(9)struct resctrl_schema(9)resctrl_arch_sync_cpu_closid_rmid(9)resctrl_get_default_ctrl(9)resctrl_arch_mon_event_config_write(9)resctrl_arch_mon_event_config_read(9)resctrl_arch_mbm_cntr_assign_enabled(9)resctrl_arch_mbm_cntr_assign_set(9)resctrl_arch_rmid_read(9)resctrl_arch_rmid_read_context_check(9)resctrl_find_domain(9)resctrl_arch_reset_rmid(9)resctrl_arch_reset_rmid_all(9)resctrl_arch_reset_all_ctrls(9)resctrl_arch_cntr_read(9)resctrl_arch_reset_cntr(9)resctrl_arch_io_alloc_enable(9)resctrl_arch_get_io_alloc_enabled(9)
like, that's twenty-nine entries. i counted. every single one is here. you're welcome π
ngl there's no warnings section on this page, but bestie please β keep the flags and types exactly as written. literally do not "improve" them. π
okay that's the whole page!! and a lil sign-off for the credits, because we respect the metadata around here π§
this one lives in ./include/linux, dated October 2026, and it's filed under resctrl_arch_config_cntr(9) β periodt. π
β¨π
π¦ 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