idle_inject_timer_fn(9)

📦 version 7.3.1, in nixpkgs unstable

✨ NAME ✨

idle_inject_timer_fn — idle injection timer function. This page is idle_inject_timer_fn(9) from the Kernel API Manual, and it’s lowkey a tiny but important little timer function 🎀.

✨ SYNOPSIS ✨

Bestie, here’s the exact signature — don’t let the enum scare you:

enum hrtimer_restart idle_inject_timer_fn (struct hrtimer *timer );

✨ ARGUMENTS ✨

  • timer — the idle injection hrtimer. That’s the timer this function takes, and yes, it’s the whole argument list 💅.

✨ DESCRIPTION ✨

So this function is called when the idle injection timer expires. When it runs, it wakes up the idle injection tasks associated with the timer, and those tasks, in turn, invoke play_idle_precise to inject a specified amount of CPU idle time. That’s the vibe: timer expires, tasks wake up, play_idle_precise does its thing with a specified amount of CPU idle time ✨.

✨ RETURN ✨

It returns HRTIMER_RESTART. Short, sweet, and literally the only return value on the page 🫶.

✨ SEE ALSO ✨


That’s the whole page, bestie 🫶. Source/version: ./drivers/powercap · Date: October 2026 · Page: idle_inject_timer_fn(9).

📦 where this page comes from