Re: Calling a function on other CPUs in an SMP machine

From: Himanshu Chauhan <himanshu_at_thechauhan.dev>
Date: Mon, 08 Jan 2024 18:52:24 UTC
Thanks! That's exactly what I was looking for.

Regards
Himanshu

On Mon, 8 Jan 2024 at 20:51, Bojan Novković <bnovkov@freebsd.org> wrote:
>
> On Mon, Jan 8, 2024 at 3:49 PM Himanshu Chauhan <himanshu@thechauhan.dev> wrote:
>>
>> What is the best way to call a function (like a per-cpu setup function from a driver) on remote CPUs in an SMP machine?
>
> The 'smp_rendezvous{_cpu}' functions in 'sys/smp.h' are what you are looking for.
> They are not listed in the manpages, but you can find more information about them in 'kern/subr_smp.c'.
>
> Bojan