MCPcopy Create free account
hub / github.com/F-Stack/f-stack / wakeup_one

Function wakeup_one

freebsd/kern/kern_synch.c:363–373  ·  view source on GitHub ↗

* Make a thread sleeping on the specified identifier runnable. * May wake more than one thread if a target thread is currently * swapped out. */

Source from the content-addressed store, hash-verified

361 * swapped out.
362 */
363void
364wakeup_one(const void *ident)
365{
366 int wakeup_swapper;
367
368 sleepq_lock(ident);
369 wakeup_swapper = sleepq_signal(ident, SLEEPQ_SLEEP, 0, 0);
370 sleepq_release(ident);
371 if (wakeup_swapper)
372 kick_proc0();
373}
374
375void
376wakeup_any(const void *ident)

Callers 15

rms_runlock_fallbackFunction · 0.70
rms_wunlockFunction · 0.70
loadimageFunction · 0.70
umtxq_unbusyFunction · 0.70
_mqueue_sendFunction · 0.70
_mqueue_recvFunction · 0.70
pipeunlockFunction · 0.70
soaio_enqueueFunction · 0.70
exec_release_args_kvaFunction · 0.70
ald_daemonFunction · 0.70
alq_writenFunction · 0.70
alq_getnFunction · 0.70

Calls 4

sleepq_lockFunction · 0.85
sleepq_signalFunction · 0.85
sleepq_releaseFunction · 0.85
kick_proc0Function · 0.85

Tested by

no test coverage detected