Driver porting: sleeping and waking up
Posted May 24, 2005 10:07 UTC (Tue) by
andyparkins (guest, #30122)
Parent article:
Driver porting: sleeping and waking up
In the example:
while (! condition) {
prepare_to_wait(&queue, &wait, TASK_INTERRUPTIBLE);
if (! condition)
schedule();
finish_wait(&queue, &wait)
}
Should finish_wait() not be outside the loop?
(
Log in to post comments)