could be ported like this I think:
wait_queue myevent;
...
wake_up_interruptible(&myevent);
...
interruptible_sleep_on(&myevent);
this will only work, if the timeout in the NT function is set to FALSE.
What to do if a timeout has to be used??
It's a nice thing to be triggert if the time is over ore a other event
like error
occurs.
Under NT multiply events can be wait for whith the function
KeWaitForMultipleObject(count, object[], ...)
which will return when one of the events in the list is fired.
The calling process knows then which event occurs.
I haven't found a way to wait for multiple events, maybe bye signals,
but I don't know how.
Any ideas are welcome.
Please CC to vgo@ratio.de
TIA
Vasili
--********************************************************************** * Vasili Goutas RATIO Entwicklungen GmbH * * P:+49-(0)40-369007-37 Admiralitätstr. 59 * * F:+49-(0)40-369007-25 D-20459 Hamburg * * Email: mailto:vgo@ratio.de * **********************************************************************
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/