can you provide the source file, dont have current 9atom iso handy
and the stuff i found on the net doesnt seem to cut it. however,
i found http://www.quanstro.net/plan9/sleepwake.html which at the
end gives a solution to the problem:
void
dowake(Io *i)
{
i->cond = 1;
wakeup(i);
i->cond = 2; /* atomic */
/* hands off i now */
}
void
doio(void)
{
Io *i;
dispatch(i = malloc(sizeof *i));
while(waserror())
/* eat note */;
sleep(i, iodone, i);
poperror();
while(i->cond != 2)
/* rendez not done */;
free(i);
}
that would be relatively easy to apply to devmnt and doesnt have the
problem of spurious wakeups with abusing up->sleep as rendez.
--
cinap