flush_smp_c...nction_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… flush_smp_c...nction_queue(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this one's short but lowkey iconic, so buckle up πŸŽ€


✨ NAME ✨

flush_smp_call_function_queue β€” flush pending smp-call-function callbacks from task context (idle, migration thread) πŸ¦‹


🌸 SYNOPSIS 🌸

void flush_smp_call_function_queue (void );

πŸ’– ARGUMENTS πŸ’–

  • void β€” no arguments, bestie. literally none. it takes nothing and it needs nothing 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the vibe. when TIF_POLLING_NRFLAG is supported and a CPU is in idle and has that flag set, then remote CPUs can skip sending IPIs entirely and instead just wake the idle CPU by setting TIF_NEED_RESCHED. slay, no IPI needed πŸ’…

the idle task on that woken-up CPU, though? it has to handle the queued SMP function calls before it gets to scheduling. not optional. main character responsibility ✨

and the migration thread has to make sure that an eventually pending wakeup has been handled before it migrates a task. like, do the vibe check first, then migrate πŸ”₯


🌈 SEE ALSO 🌈


okay that's the whole page, no cap πŸ’€ it's a short one but she ate πŸ’…

sign-off time, bestie: this iconic little doc lives under ./kernel, dated October 2026, and it's titled flush_smp_c...nction_queue(9) β€” go forth and flush those queues πŸ§šβ€β™€οΈβ­πŸ’œ

πŸ“¦ where this page comes from