Kernel code: executing once on each CPU?

Martin Cracauer cracauer at cons.org
Tue Feb 3 10:13:11 PST 2009


Is there a facility in FreeBSD that allows me to have a piece of code
executed on each processor, then return to the original thread when
that has been completed?

I need to collect some data that's local to the individual CPUs/cores.

In Linux there is/was smp_call_function(func, ...).

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer at cons.org>   http://www.cons.org/cracauer/
FreeBSD - where you want to go, today.      http://www.freebsd.org/


More information about the freebsd-smp mailing list