Like in blocking read() and poll() etc?
interruptable_sleep_on()
or
sleep_on()
in poll() use poll_wait()
K.D.
P.S.
"Linux Device Drivers" by Rubini is an excellent guide to driver
writing, although
it is getting quite old (in kernel-time space).
Other drivers can serve as tutrials too.
K.D.
-----Original Message-----
From: Ralph Blach [mailto:rcblach@raleigh.ibm.com]
Sent: 8. mars 2001 13:38
To: Embedded Linux list
Subject: Going to sleep atomically
In a device driver, What is the best way to go to sleep atomically?
Thanks
Chip
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/