resctrl_arch...r_assign_set(9)
π resctrl_arch_mbm_cntr_assign_set(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function in the resctrl family and honestly it's giving "small but mighty" energy π it flips the MBM counter assignment mode on or off, that's literally it, and it does it so well π
β¨ NAME β¨
resctrl_arch_mbm_cntr_assign_set β configure the MBM counter assignment mode π§
πΈ SYNOPSIS πΈ
int resctrl_arch_mbm_cntr_assign_set (struct rdt_resource *r , bool enable );
π ARGUMENTS π
rβ pointer to the resource structure π«Ά like, that's the resource you're working with, no capenableβ set totrueto enable,falseto disable the assignment mode π₯ yes it's literally just a bool, bestie, it's a light switch and it slays
β RETURN β
0 on success, < 0 on error π (so if you get anything negative back, that's your vibe check failing β handle it)
π¦ SEE ALSO π¦
Kernel file ./include/linux/resctrl.h β and omg the whole friend group showed up, look at them all:
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_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)
π friendly reminder bestie:0= we ate,< 0= we did not eat. always check your return value, iykyk π
and that's the page!! π brought to you by the lovely people over at ./include/linux, dated October 2026 β stan a source directory that keeps it iconic ππ π
π¦ 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