stop_two_cpus(9)
π 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 tofnπ
π¦ 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:
- Kernel file
./kernel/stop_machine.c stop_one_cpu(9)stop_one_cpu_nowait(9)stop_cpus(9)stop_machine_from_inactive_cpu(9)
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
- 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