idle_inject_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯

  • NULL if memory allocation fails 😭 (it happens to the best of us)
  • an idle injection control device pointer on success πŸ‘‘ slay

🌈 SEE ALSO 🌈


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