init_idle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


πŸ’œ 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