Rechercher une page de manuel

Chercher une autre page de manuel:


Langue: en

Version: October 2010 (fedora - 01/12/10)

Section: 9 (Appels noyau Linux)


__wake_up_sync_key - wake up threads blocked on a waitqueue.


void __wake_up_sync_key(wait_queue_head_t * q, unsigned int mode, int nr_exclusive, void * key);



the waitqueue


which threads


how many wake-one or wake-many threads to wake up


opaque value to be passed to wakeup targets


The sync wakeup differs that the waker knows that it will schedule away soon, so while the target thread will be woken up, it will not be migrated to another CPU - ie. the two threads are 'synchronized' with each other. This can prevent needless bouncing between CPUs.

On UP it can prevent extra preemption.

It may be assumed that this function implies a write memory barrier before changing the task state if and only if any tasks are woken up.

Maintenant, j'ai trouvé une combine, je milite. À chaque fois que je
prends le taxi, je donne pas de pourboire et j'lui dis :
"Vous vous rappellerez, hein : j'suis du R.P.R. !"
-+- Coluche -+-