Skip to contentSkip to conversation

long delays in drivers.

DISCUSSION Iain Sandoe 2 participants 2 messages Feb 4, 2001 – Feb 6, 2001

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw

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/