• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Call function on all processors
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Call function on all processors (From: Paul Litvak <email@hidden>)

  • Prev by Date: Call function on all processors
  • Next by Date: Re: Call function on all processors
  • Previous by thread: Call function on all processors
  • Next by thread: Re: Call function on all processors
  • Index(es):
    • Date
    • Thread