resctrl_arch...ontext_check(9)
π 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:
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_mbm_cntr_assign_set(9)resctrl_arch_rmid_read(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)
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
- 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