kick_all_cpus_sync(9)
π kick_all_cpus_sync(9) β like, from the Kernel API Manual bestie β¨
okay so picture this: it's giving "everybody wake UP" energy, and the manual page name literally tells you what it is. we're in the Kernel API Manual, section 9, and the star of the show is kick_all_cpus_sync. no thoughts, just vibes and a whole lot of CPUs that need to stop napping. π«Ά
β¨ NAME β¨
kick_all_cpus_sync β force all cpus out of idle π₯
like, yes, every single one. no cap. this is the group-chat "wake up besties, we're going" of kernel functions π
π¦ SYNOPSIS π¦
void kick_all_cpus_sync (void );
that's it. that's the whole call. icon behavior, honestly π
πΈ ARGUMENTS πΈ
voidβ no arguments. zero. nada. nothing to pass, nothing to overthink. she takes nothing and she gives everything π
π§ DESCRIPTION π§
so here's the tea. β This function is used to synchronize the update of the pm_idle function pointer. lowkey main character energy β it's the vibe check for pointer updates.
the way it works: it's called after the pointer is updated, and it returns after the dummy callback function has been executed on all cpus. periodt. π
and here's the smart part β the execution of the function can only happen on the remote cpus after they have left the idle function which had been called via the pm_idle function pointer. so it's guaranteed that nothing uses the previous pointer anymore. she really said "no leftovers, no stragglers, no stale pointers" and honestly? slay π₯β¨
ngl this is a "wait for everyone to actually get the memo" situation and it works, so like, respect π«Ά
π SEE ALSO π
the whole squad, fr fr β kernel file ./kernel/smp.c, plus:
csd_lock_is_stuck(9)generic_smp_call_function_single_interrupt(9)__flush_smp_call_function_queue(9)flush_smp_call_function_queue(9)smp_call_function_single(9)smp_call_function_single_async(9)smp_call_function_any(9)smp_call_function_many(9)smp_call_function(9)on_each_cpu_cond_mask(9)wake_up_all_idle_cpus(9)cpus_peek_for_pending_ipi(9)struct smp_call_on_cpu_struct(9)smp_call_on_cpu(9)
go read them, iykyk ππ
and that's the page!! π she comes from the ./kernel source, dated October 2026, and her name is, obviously, kick_all_cpus_sync(9) β mwah πβ¨ go forth and sync those cpus bestie πβ
π¦ 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