idle_inject_get_duration(9)
π NAME π
okay bestie, this is the Kernel API Manual page for idle_inject_get_duration(9), and the name is literally giving idle and run duration retrieval helper β¨. That's the whole vibe β it's the helper for getting idle and run duration info, no cap π
.
β¨ SYNOPSIS β¨
the signature is right here, and yes, the return type is void:
void idle_inject_get_duration (struct idle_inject_device *ii_dev ,
unsigned int *run_duration_us , unsigned int *idle_duration_us );
π ARGUMENTS π
ii_devβ the idle injection control device structure. this is the struct you pass in, bestie π«Άrun_duration_usβ a memory location to store the current CPU run time. yes, pointer situation, and this is where the run time goes πidle_duration_usβ a memory location to store the current CPU idle time. same energy, different duration: this is the spot for the idle time πΈ
π 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_set_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).
okay that's the whole page, bestie π«Άπ β source/version: ./drivers/powercap, date: October 2026, and page: idle_inject_get_duration(9). slay and goodbye π
β¨
π¦ 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