resctrl_arch_reset_cntr(9)
π resctrl_arch_reset_cntr(9) β the Kernel API Manual page, but make it make sense
okay bestie so this is a page from the Kernel API Manual and it's all about resctrl_arch_reset_cntr β literally the lil function that wipes the private state hanging off a counter ID. it's short, it's sweet, and yes we're gonna read the whole thing together π«Ά
β¨ NAME β¨
resctrl_arch_reset_cntr β reset any private state associated with a counter ID. that's it, that's the whole personality π
πΈ SYNOPSIS πΈ
void resctrl_arch_reset_cntr (struct rdt_resource *r , struct
rdt_l3_mon_domain *d , u32 closid , u32 rmid , int cntr_id , enum
resctrl_event_id eventid );
like, look at her. six arguments, returns nothing (void), absolute main character energy π
π¦ ARGUMENTS π¦
rβ the domain's resource. your resource, your rules πdβ the counter ID's domain. every counter's gotta live somewhere, and this is where πclosidβ the CLOSID that matches the RMID. they're a matching set, iykyk β¨rmidβ the RMID thatcntr_idis assigned to. the one and only π₯cntr_idβ the counter you're actually resetting. the star of the show βeventidβ the MBM event thatcntr_idis assigned to. context is everything, fr fr π
π§ DESCRIPTION π§
so what does she do? she resets the private state associated with a counter ID. and the big flex:
this can be called from any CPU. no pinning, no stressing, no "wait which core am I on" panic. she's chill like that π
π SEE ALSO π
okay this is the part where the page name-drops literally everyone in the friend group. and when I say everyone, I mean everyone β no cap, all of these:
- 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_config_cntr(9)resctrl_arch_cntr_read(9)resctrl_arch_io_alloc_enable(9)resctrl_arch_get_io_alloc_enabled(9)
like I said. the whole group chat π
k bye bestie, go reset some counters π β¨
this page lives over in ./include/linux, it's dated October 2026, and it's brought to you by the one and only resctrl_arch_reset_cntr(9) β mwah, love u, see u in the man pages ππ
π¦ 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