Re: Call function on all processors
Re: Call function on all processors
- Subject: Re: Call function on all processors
- From: "Brian Bechtel" <email@hidden>
- Date: Thu, 16 Nov 2006 15:21:53 -0800
On 11/16/06, Paul Litvak <email@hidden> wrote:
How would you call a function on all cpus from a kernel extension?
Look in the darwin source for more details:
/*
* All-CPU rendezvous:
* - CPUs are signalled,
* - all execute the setup function (if specified),
* - rendezvous (i.e. all cpus reach a barrier),
* - all execute the action function (if specified),
* - rendezvous again,
* - execute the teardown function (if specified), and then
* - resume.
*
* Note that the supplied external functions _must_ be reentrant and aware
* that they are running in parallel and in an unknown lock context.
*/
void
mp_rendezvous(void (*setup_func)(void *),
void (*action_func)(void *),
void (*teardown_func)(void *),
void *arg)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden