Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2024 00:22:24 +0530
From:      Himanshu Chauhan <himanshu@thechauhan.dev>
To:        =?UTF-8?Q?Bojan_Novkovi=C4=87?= <bnovkov@freebsd.org>
Cc:        freebsd-riscv@freebsd.org
Subject:   Re: Calling a function on other CPUs in an SMP machine
Message-ID:  <CAOSxWxz6dguGOnWzF%2BSWD_WmOgs7%2B0Pbu1a6YYBPYqUV1ON6ow@mail.gmail.com>
In-Reply-To: <CA%2B=MDrGxL19tenSwXXGNNr3iEhomgeo49isGdq90NoFPW%2B1Wew@mail.gmail.com>
References:  <7A8DC6C8-9582-455C-B05D-9F24838A9070@thechauhan.dev> <9992B290-04CA-485C-A79B-5CDFC8AA917D@fer.hr> <CA%2B=MDrGxL19tenSwXXGNNr3iEhomgeo49isGdq90NoFPW%2B1Wew@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks! That's exactly what I was looking for.

Regards
Himanshu

On Mon, 8 Jan 2024 at 20:51, Bojan Novkovi=C4=87 <bnovkov@freebsd.org> wrot=
e:
>
> On Mon, Jan 8, 2024 at 3:49=E2=80=AFPM Himanshu Chauhan <himanshu@thechau=
han.dev> wrote:
>>
>> What is the best way to call a function (like a per-cpu setup function f=
rom a driver) on remote CPUs in an SMP machine?
>
> The 'smp_rendezvous{_cpu}' functions in 'sys/smp.h' are what you are look=
ing for.
> They are not listed in the manpages, but you can find more information ab=
out them in 'kern/subr_smp.c'.
>
> Bojan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOSxWxz6dguGOnWzF%2BSWD_WmOgs7%2B0Pbu1a6YYBPYqUV1ON6ow>