STRUCT IDLE_INJECT_THREAD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ 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 cap
  • should_run β€” whether or not to run the task (for the smpboot kthread API) ⭐ so it's basically the yes/no vibe check for running the task
ngl, should_run is such a relatable name. should i run? should i not? the smpboot kthread API decides πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


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