resctrl_arc..._closid_rmid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a struct resctrl_cpu_defaults that specifies the new CLOSID and RMID for tasks in the default resctrl ctrl and mon group when running on this CPU. If it's NULL, 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:

  1. It records the per-CPU defaults specified by info (if any β€” remember, NULL means no reassignment, bestie).
  2. 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:

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