stop_one_cpu_nowait(9)
stop_one_cpu_nowait(9) π
okay so bestie, welcome to the Kernel API Manual β this page is all about stop_one_cpu_nowait, and itβs giving βstop a cpu but make it asynchronousβ energy. no waiting around, periodt. π
πΈ NAME πΈ
stop_one_cpu_nowait β stop a cpu but don't wait for completion π
β¨ SYNOPSIS β¨
void stop_one_cpu_nowait (unsigned int cpu , cpu_stop_fn_t fn , void
*arg , struct cpu_stop_work *work_buf );
π ARGUMENTS π
cpuβ cpu to stop πfnβ function to execute β¨argβ argument tofnπ«Άwork_bufβ pointer tocpu_stop_workstructure π
π¦ DESCRIPTION π¦
so itβs similar to stop_one_cpu, but hereβs the twist: it doesn't wait for completion. not me being impatient, itβs literally the whole point. π
the caller is responsible for ensuring work_buf is currently unused and will remain untouched until the stopper starts executing fn. yes, thatβs on you, bestie β guard that buffer with your life. π₯
π CONTEXT π
context? don't care, lowkey. but the caller must ensure cpu's stopper stays enabled until the work is queued, e.g. by preempt_disable. that part is not optional, fr fr. π«Ά
π SEE ALSO π
- Kernel file:
./kernel/stop_machine.c stop_one_cpu(9)stop_two_cpus(9)stop_cpus(9)stop_machine_from_inactive_cpu(9)
k bye bestie π this pageβs source/version is ./kernel, dated October 2026, and the footer is still repping stop_one_cpu_nowait(9) β mwah π
β¨
π¦ 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