Kernel code: executing once on each CPU?
Julian Elischer
julian at elischer.org
Tue Feb 3 11:05:37 PST 2009
Martin Cracauer wrote:
> 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, ...).
no, though it might be useful.
the rmlock facility does this in order to do its work (from memory)
and it would be a useful thing..
I'd even suggest that it take a bitmask of required CPUs.
that can be used in conjuction with the cpu set stuff.
>
> Martin
More information about the freebsd-smp
mailing list