resctrl_arch...ontext_check(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

resctrl_arch...ontext_check β€” the little function that just warns you when your context is invalid, bestie. That's it. That's the whole job. ✨

Oh and hi, welcome to the Kernel API Manual β€” you're gonna love it here 🫢


🌸 SYNOPSIS 🌸

void resctrl_arch_rmid_read_context_check (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” literally no arguments. nothing. zero. the void is empty, she takes nothing, she gives warnings πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” when the kernel is built with CONFIG_DEBUG_ATOMIC_SLEEP, this function will generate a warning whenever resctrl_arch_rmid_read gets called with preemption disabled. like, it's not mad, it's just disappointed 😭

The contract with resctrl_arch_rmid_read is that if interrupts are unmasked, it can sleep. Read that again, it matters πŸ‘‘

This is what lets NOHZ_FULL systems use an IPI β€” and fail if the call needed to sleep β€” while most of the time the work is scheduled, which lets the call sleep. best of both worlds, no cap πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/resctrl.h β€” and like, the whole friend group:


and that's the whole page, omg we ate that up πŸ’…βœ¨ this one lives in ./include/linux, dated October 2026, and it's brought to you by resctrl_arch...ontext_check(9) β€” mwah, see u in the source tree bestie πŸ§šπŸ’œ

πŸ“¦ where this page comes from