idle_init(9)
β¨ idle_init(9) β¨
okay so this is a page from the Kernel API Manual and honestly? it's a short one but she's iconic π
it's all about idle_init and we're gonna get you comfy with her.
π NAME π
idle_init β bestie, this is the one that initializes the idle thread for a cpu π¦
πΈ SYNOPSIS πΈ
void idle_init (unsigned int cpu );
that's it. that's the whole vibe. no return value, no drama β¨
π ARGUMENTS π
cpuβ the cpu for which the idle thread should be initialized π« literally just tell her which cpu you're talking about and she'll handle it.
π§ DESCRIPTION π§
okay so here's the tea: idle_init creates the thread if it does not exist. π«Ά
that's the whole thing, no cap. if the thread's already there? she's not gonna do anything extra. if it's not there yet? she makes it. main character energy fr fr π
π₯ SEE ALSO π₯
- Kernel file
./kernel/smpboot.cπ (yes bestie, that's where the magic lives) idle_threads_init(9)smpboot_thread_fn(9)smpboot_register_percpu_thread(9)smpboot_unregister_percpu_thread(9)
like, go read those too, they're all part of the same little smpboot family π
π quick reminder: this page comes from ./kernel and she's dated October 2026 β so she's fresh, she's current, she's giving very much up to date β
okay that's the whole page bestie, mwah, go initialize some idle threads πππ
π¦ 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