resctrl_arch...alloc_enable(9)
π resctrl_arch_io_alloc_enable β a Kernel API Manual moment β¨
okay so bestie, welcome to the Kernel API Manual β this one's a little function with big "turn the thing on or off" energy, and honestly? she's serving simplicity. let's get into it π
πΈ NAME πΈ
resctrl_arch_io_alloc_enable β literally just enable/disable the io_alloc feature. that's the whole vibe. no cap. π
β¨ SYNOPSIS β¨
int resctrl_arch_io_alloc_enable (struct rdt_resource *r , bool enable
);
look at her. two args, one int return, zero drama. iconic π«Ά
π¦ ARGUMENTS π¦
rβ the resctrl resource, aka the main character of this whole operation πenableβ flip it on (true) or off (false) forio_allocon resourcer. that's it, that's the toggle π
π§ DESCRIPTION π§
so like, here's the tea: this can be called from any CPU. literally any of them. no pinning required, no "you must be on this CPU" gatekeeping, she's flexible like that β¨
β RETURN β
0on success π (slay)<0on error π (not slay, but we move)
π SEE ALSO π
the kernel file lives at ./include/linux/resctrl.h β go say hi to the whole friend group over there π
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_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_get_io_alloc_enabled(9)
so yeah, that's the whole page bestie π go forth and toggle responsibly.
this came out of./include/linux, dated October 2026, and the header on the tin saysresctrl_arch...alloc_enable(9)β mwah π ok bye, love u, see u in the man pages π§ββοΈπβ¨
π¦ 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