smp_call_function_single(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… smp_call_function_single β€” like, the Kernel API Manual page you actually needed

okay bestie, gather round, because this one is genuinely iconic. smp_call_function_single(9) is the kernel function that runs your function on one specific CPU β€” not any CPU, not all of them, that exact one you pointed at. main character energy, honestly πŸŽ€


✨ NAME ✨

smp_call_function_single β€” run a function on a specific CPU πŸ‘‘ no cap, that's the whole vibe.


🌸 SYNOPSIS 🌸

int smp_call_function_single (int cpu , smp_call_func_t func , void
*info , bool wait );

like, look at that signature. four args. she's precise. πŸ¦‹


πŸ’– ARGUMENTS πŸ’–

  • cpu β€” the specific target CPU for this function 🎯 literally the whole point. you pick the CPU, this is the CPU. no take-backs.
  • func β€” the function to run. and like… ⚠️ this one has a rule, bestie: it must be fast and non-blocking. that's non-negotiable, fr fr. don't be out here blocking on a CPU that's waiting for you to finish. that's not slay, that's a deadlock 😭
  • info β€” an arbitrary pointer to pass to the function 🫢 whatever you want, she'll hand it over. it's giving "note passed in class."
  • wait β€” if true, wait until the function has completed on other CPUs ⏳ yes, other CPUs, that's what it says. true means you sit and wait for the glow-up to finish; false means you go live your life πŸ’€

⭐ RETURN ⭐

0 on success β€” ate, no crumbs ✨

else a negative status code πŸ™ˆ so like, check it. please. for me.


🧚 SEE ALSO 🧚

all the siblings, and yes we're listing every single one because they all deserve their moment πŸ’œ

like, the whole friend group showed up 🫢


and that's the page!! 🌈 sourced from ./kernel, dated October 2026 β€” so it's fresh, it's current, it's the moment πŸ’…βœ¨ bye bestie, go run something fast and non-blocking πŸ’–

πŸ“¦ where this page comes from