resctrl_arch...r_assign_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 cap
  • enable β€” set to true to enable, false to 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:


πŸ’€ 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