__flush_smp...nction_queue(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __flush_smp_call_function_queue β€” Kernel API Manual (9)

okay so bestie, welcome to the kernel API manual, section 9, and today's main character is __flush_smp_call_function_queue. yes it's a long name. yes it ate. let's get into it 🫢


✨ NAME ✨

__flush_smp_call_function_queue β€” literally just flushes any pending smp-call-function callbacks. that's the whole job. she does one thing and she does it well πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

void __flush_smp_call_function_queue (bool warn_cpu_offline );

🌸 ARGUMENTS 🌸

  • warn_cpu_offline β€” if you set this to 'true', she'll warn you when callbacks were queued on an offline CPU πŸ‘€ (yes, that's a whole situation). if you set it to 'false', she skips that check entirely. ur choice bestie, but choose wisely ✨

πŸ”₯ DESCRIPTION πŸ”₯

okay so the vibe: this function flushes any pending smp-call-function callbacks that are queued on this CPU. that's it. that's the mission πŸ’–

who calls her? the generic IPI handler does, and also a CPU that's about to go offline β€” because we need all pending IPI callbacks to actually run before that CPU dips out completely. no leaving homework unfinished, no cap πŸŽ“

the way she works: she loops through the call_single_queue and runs every single queued callback. all of them. no skips, no stragglers 🌈

⚠️ okay important!! she must be called with interrupts disabled. not "should", not "ideally" β€” must. consider that a vibe check you cannot fail πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

kernel file ./kernel/smp.c (that's her home base 🏠), plus all these iconic siblings and neighbors:


πŸ“ that's the whole page bestie, go flush some callbacks (interrupts disabled, remember!!) πŸ˜­πŸ’œ

kisses, this was served fresh from ./kernel, dated October 2026 β€” kernel API manual, section 9, signing off πŸ§šβœ¨πŸ‘‘

πŸ“¦ where this page comes from