idle_inject_register(9)
π idle_inject_register(9) π
okay so welcome to the Kernel API Manual bestie, today we're learning about idle_inject_register β and yes she's pronounced exactly how it's spelled, no cap π«Ά
β¨ NAME β¨
idle_inject_register β initialize idle injection on a set of CPUs π§
πΈ SYNOPSIS πΈ
struct idle_inject_device * idle_inject_register (struct cpumask
*cpumask );
π ARGUMENTS π
cpumaskβ the CPUs that are gonna be affected by idle injection. like, this is the guest list for the injection party π
π¦ DESCRIPTION π¦
so what she actually does: this function creates an idle injection control device structure for the given set of CPUs, and initializes the timer that comes with it. two-for-one, iconic behavior honestly β¨
but listen β she does NOT start any injection cycles. that's it, that's the whole vibe check. she sets things up and then just... sits there, looking cute, waiting. do not expect cycles to be running when this returns, because they are not π
π₯ RETURN π₯
NULLif memory allocation fails π (it happens to the best of us)- an idle injection control device pointer on success π slay
π SEE ALSO π
- Kernel file
./drivers/powercap/idle_inject.cβ the source, go read it iykyk struct idle_inject_thread(9)struct idle_inject_device(9)idle_inject_wakeup(9)idle_inject_timer_fn(9)idle_inject_fn(9)idle_inject_set_duration(9)idle_inject_get_duration(9)idle_inject_set_latency(9)idle_inject_start(9)idle_inject_stop(9)idle_inject_setup(9)idle_inject_should_run(9)idle_inject_register_full(9)idle_inject_unregister(9)
fr fr the whole friend group is in that list, so if you're confused about anything just go read the sisters π
and that's the page!! mwah π this one lives in ./drivers/powercap, dated October 2026, and she's filed under idle_inject_register(9) β go forth and inject idly, 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