smp_call_function_single(9)
π 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 π
- the kernel file
./kernel/smp.cπ csd_lock_is_stuck(9)generic_smp_call_function_single_interrupt(9)__flush_smp_call_function_queue(9)flush_smp_call_function_queue(9)smp_call_function_single_async(9)smp_call_function_any(9)smp_call_function_many(9)smp_call_function(9)on_each_cpu_cond_mask(9)kick_all_cpus_sync(9)wake_up_all_idle_cpus(9)cpus_peek_for_pending_ipi(9)struct smp_call_on_cpu_struct(9)smp_call_on_cpu(9)
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
- 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