kick_all_cpus_sync(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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