next up previous contents index
Next: 8.17 Driver-Kernel Interface: Timing Up: 8.16 Sleep/Wakeup Previous: 8.16.2 osenv_sleep: put the

8.16.3 osenv_wakeup: wake up a sleeping process

 

SYNOPSIS

#include <oskit/dev/dev.h>

void osenv_wakeup(osenv_sleeprec_t *sleeprec, int wakeup_status);

DIRECTION

Component tex2html_wrap_inline36701 OS, Nonblocking

DESCRIPTION

The driver calls this function to wake up a process-level activity that has gone to sleep (or is preparing to go to sleep) waiting on some event. The value of wakeup_status is subsequently returned to the caller of osenv_sleep, making it possible to indicate various wakeup conditions (such as abnormal termination). It is harmless to wake up a process that has already been woken.

PARAMETERS

sleeprec
A pointer to the sleep record of the process to wake up. Must actually point to a valid sleep record variable that has been properly initialized using osenv_sleep_init.
wakeup_status
The status to be returned from osenv_sleep. OSENV_SLEEP_WAKEUP indicates normal wakeup, OSENV_SLEEP_CANCELLED indicates an interrupted sleep, while other status values indicate other conditions.



Utah Flux Research Group