idle_inject_register_full(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, this is idle_inject_register_full(9) from the Kernel API Manual, and it's literally here to initialize idle injection on a set of CPUs. πŸ’…πŸ’–

🌸 SYNOPSIS 🌸

struct idle_inject_device * idle_inject_register_full (struct cpumask
       *cpumask , bool (*update)(void) );

πŸŽ€ ARGUMENTS πŸŽ€

  • cpumask β€” the CPUs that are going to be affected by idle injection, periodt. πŸ¦‹
  • update β€” this callback is called just before waking up CPUs to inject idle. 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

This function creates an idle injection control device structure for the given set of CPUs and initializes the timer associated with it. It also allows you to register updatecallback. 🫢

heads up bestie: it does not start any injection cycles. not even one. πŸ’€

πŸ‘‘ RETURN πŸ‘‘

  • NULL if memory allocation fails. 😭
  • an idle injection control device pointer on success. πŸŽ‰

πŸ’œ SEE ALSO πŸ’œ

Kernel file: ./drivers/powercap/idle_inject.c


xoxo bestie, this iconic little page comes from source/version ./drivers/powercap, dated October 2026, and it's literally idle_inject_register_full(9). πŸŽ€πŸ’…βœ¨

πŸ“¦ where this page comes from