long delays in drivers.
if I need to implement a long delay (say 1 second) in the initialisation of a driver... what is the best mechanism to use to ensure that resources are not wasted?
Iain.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
On 4 Feb, this message from Iain Sandoe echoed through cyberspace:
Quoted 3 lines
if I need to implement a long delay (say 1 second) in the initialisation of a driver... what is the best mechanism to use to ensure that resources are not wasted?
Use a waitqueue. Relativly easy to implement....I can dig out an example at work, if you need it. Just let me know.
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art. 23, Rue Paul Henkes | Ask Questions. Make Mistakes. L-1710 Luxembourg | email [email protected] | http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/