Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Feb 2009 10:54:12 -0800
From:      Julian Elischer <julian@elischer.org>
To:        Martin Cracauer <cracauer@cons.org>
Cc:        freebsd-smp@freebsd.org
Subject:   Re: Kernel code: executing once on each CPU?
Message-ID:  <498892D4.7010501@elischer.org>
In-Reply-To: <20090203175728.GA55080@cons.org>
References:  <20090203175728.GA55080@cons.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?498892D4.7010501>