resctrl_arc..._closid_rmid(9)
π resctrl_arch_sync_cpu_closid_rmid β from the Kernel API Manual, bestie β¨
Okay so this one's a kernel API page, which literally means it's for people writing kernel code, not for you to type in your terminal. But stick with me, because it's actually kind of a slay once you get what it's doing π«Ά
πΈ NAME πΈ
resctrl_arch_sync_cpu_closid_rmid β refresh this CPU's CLOSID and RMID. Call it via IPI. That's the whole vibe π₯
β¨ SYNOPSIS β¨
void resctrl_arch_sync_cpu_closid_rmid (void *info );
That's it. One void * argument, returns nothing. Iconic minimalism, no notes π
π ARGUMENTS π
infoβ if it's non-NULL, it's a pointer to astruct resctrl_cpu_defaultsthat specifies the new CLOSID and RMID for tasks in the default resctrl ctrl and mon group when running on this CPU. If it'sNULL, then this CPU is not being re-assigned to a different default group. That's it, that's the whole rule π¦
π DESCRIPTION π
So here's the tea: this function propagates the reassignment of CPUs and/or tasks to different resctrl groups when the resctrl core code asks for it. Basically the core code is like "hey, move this stuff" and this is the function that makes it actually happen β¨
What it does, step by step:
- It records the per-CPU defaults specified by
info(if any β remember, NULL means no reassignment, bestie). - Then it reconfigures the CPU's hardware CLOSID and RMID for subsequent execution based on current, in the same way as during a task switch.
And the NAME said it β call it via IPI. That's not optional, that's the whole delivery mechanism. Not me being dramatic, it's literally in the name π
π SEE ALSO π
Okay this list is long and every single one of these is in the kernel file ./include/linux/resctrl.h, so buckle up:
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_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_reset_cntr(9)resctrl_arch_io_alloc_enable(9)resctrl_arch_get_io_alloc_enabled(9)
Like I said. A whole friend group π
And that's the page, bestie! π§ This one's from ./include/linux, dated October 2026 β so yeah, future vibes, we love that for us. Go read the source, it's giving main character energy βπ
π¦ 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