callout_reset_on() with wait?

Konstantin Belousov kostikbel at gmail.com
Sat Jan 6 10:48:41 UTC 2018


On Sat, Jan 06, 2018 at 09:18:32AM +0000, Johannes Lundberg wrote:
> Hi
> 
> I need to execute some code on another cpu (specified by cpu #) and wait
> for return. Is there any one function to call for this in freebsd 12
> kernel? (or example where similar is implemented?)
There is smp_rendezvous_cpus() which does exactly that, but the context
where the functions are called do not allow any synchronization, except
carefully prepared spin locks.  Your use of the word 'wait' leaves a lot
to guess.


More information about the freebsd-hackers mailing list