stop_two_cpus(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to the stop_two_cpus(9) page from the Kernel API Manual. this one is short, iconic, and here to stop exactly two cpus. let's get into it 🫢✨

🌸 NAME 🌸

stop_two_cpus β€” stops two cpus

✨ SYNOPSIS ✨

the whole vibe, in code:

int stop_two_cpus (unsigned int cpu1 , unsigned int cpu2 , cpu_stop_fn_t fn , void *arg );

πŸŽ€ ARGUMENTS πŸŽ€

  • cpu1 β€” the cpu to stop πŸ’…
  • cpu2 β€” the other cpu to stop 🫢
  • fn β€” function to execute ✨
  • arg β€” argument to fn πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here’s the tea: it stops both the current and specified CPU and runs fn on one of them. it returns when both are completed. no cap, that’s the whole bit πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./kernel/stop_machine.c is where this lives, and these are the related pages to peek at:


and that’s the page, bestie! 🫢 source/version: ./kernel Β· date: October 2026 Β· page: stop_two_cpus(9) β€” go stop exactly two cpus and slay πŸ’…βœ¨

πŸ“¦ where this page comes from