idle_inject_set_duration(9)
π idle_inject_set_duration(9) β the Kernel API Manual, bestie edition π
okay so this is idle_inject_set_duration, straight out of the kernel API manual, and she's a little helper for updating the idle duration and run duration on an idle injection device. yes that's a lot of words. we'll get through it together π«Ά
β¨ NAME β¨
idle_inject_set_duration β the idle-and-run-duration update helper, no cap β¨
πΈ SYNOPSIS πΈ
void idle_inject_set_duration (struct idle_inject_device *ii_dev ,
unsigned int run_duration_us , unsigned int idle_duration_us );
she takes three things and returns nothing (void, iconic, doesn't need to report back π
). note the literal spacing in there, we're copying it exactly, character for character, fr fr.
π¦ ARGUMENTS π¦
ii_devβ the idle injection control device structure. this is your main character, the thing you're tweaking πrun_duration_usβ the CPU run time to allow, measured in microseconds. so like, how long the CPU gets to actually cook π₯idle_duration_usβ the CPU idle time to inject, also in microseconds. this is the forced lil nap π΄
lowkey the easiest way to remember it: run first, idle second. microseconds for both. don't mix them up ngl π«Ά
π SEE ALSO π
- Kernel file
./drivers/powercap/idle_inject.c 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_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_register(9)idle_inject_unregister(9)
like, the whole friend group π§ go read idle_inject_get_duration(9) if you want the read-only bestie version, and idle_inject_set_latency(9) if latency is more your vibe π
that's the whole page bestie, she's short and sweet π β brought to you from ./drivers/powercap, dated October 2026, in the Kernel API Manual, filed under idle_inject_set_duration(9). slay, go set some durations π
β¨
π¦ 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