init_idle(9)
init_idle π
Okay bestie, welcome to the Kernel API Manual page for init_idle β the function that sets up an idle thread for a given CPU. πβ¨
NAME π¦
init_idle β set up an idle thread for a given CPU. periodt.
SYNOPSIS β
void init_idle (struct task_struct *idle , int cpu );
ARGUMENTS π
idleβ the task in question, like literally the task we're talking about, bestie.cpuβ the CPU the idle task belongs to.
NOTE π
This function does not set the idle thread's NEED_RESCHED flag, and that's intentional β it makes booting more robust. no cap.
SEE ALSO π«Ά
Kernel file ./kernel/sched/core.c, plus all these iconic function besties:
wake_q_add(9)wake_q_add_safe(9)task_curr(9)try_to_wake_up(9)task_call_func(9)cpu_curr_snapshot(9)wake_up_process(9)preempt_notifier_register(9)preempt_notifier_unregister(9)prepare_task_switch(9)finish_task_switch(9)schedule_tail(9)schedule_preempt_disabled(9)preempt_schedule_notrace(9)curr_task(9)
π that's the whole page, bestie! cute little sign-off: source/version from ./kernel/sched, dated October 2026, for init_idle(9) β mwah, bye! π
π
π¦ 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