On Thu Aug 23 05:50:45 EDT 2012, cinap_len...@gmx.de wrote:
> can you provide the source file, dont have current 9atom iso handy

here's the full kernel source: http://ftp.quanstro.net/other/kernel.mkfs.bz2

> 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:

this was actually distilled from the solution that devaoe uses.  the
main simplification is in the case of a note.  which is key in this case,
since it would be very annoying for devmnt to ignore notes.

> that would be relatively easy to apply to devmnt and doesnt have the
> problem of spurious wakeups with abusing up->sleep as rendez.

any time you use sleep/wakeup, you're going to have to deal with
spurious wakeups.  it does not matter which rendezvous structure
you use.  it doesn't matter if it's shared or not.  it's perfectly valid
for sleep to return for no reason at all!

- erik

Reply via email to