stop_one_cpu_nowait(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 to fn 🫢
  • work_buf β€” pointer to cpu_stop_work structure πŸ‘‘

πŸ¦‹ 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 🌈


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