STRUCT IDLE_INJECT_THREAD(9)
π¦ struct idle_inject_thread(9) π¦
okay so bestie, welcome to the Kernel API Manual β¨ we're looking at struct idle_inject_thread today and honestly? it's giving "tiny but iconic." it's literally just the task on/off switch structure β that's the whole vibe. small struct, big main character energy π
β¨ NAME β¨
struct idle_inject_thread β task on/off switch structure π
πΈ SYNOPSIS πΈ
struct idle_inject_thread {
struct task_struct *tsk;
int should_run;
};
that's it. that's the struct. two fields and a dream π«Ά
π Members π
tskβ the task injecting the idle cycles π like, this is the actual task doing the work, no capshould_runβ whether or not to run the task (for thesmpbootkthread API) β so it's basically the yes/no vibe check for running the task
ngl,should_runis such a relatable name. should i run? should i not? thesmpbootkthread API decides π
π¦ SEE ALSO π¦
- Kernel file
./drivers/powercap/idle_inject.cπ 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_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, go read the whole idle_inject squad, they're all linked and they all ate π₯ iykyk
kisses bestie, this page lives in ./drivers/powercap and it's dated October 2026 β see u in the source tree πβ¨
π¦ 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