newbie delay/sleep question



I am developing a device driver that handles an interrupt. When my
device driver receives the interrupt I would like to sleep for 100
microseconds and then do some other task. My problem is I may receive
another interrupt within that 100 microseconds and the sleep I've been
trying to do is blocking the next guy from executing on time (waiting
for the first guy to finish sleeping).

I've been looking at using timers, task queues, and work queues, but
I'm not exactly sure if that's the way to go and it seems if I base my
delay on jiffies, I will not be able to satisfy my microsecond sleep
requirement. Any ideas?

.



Relevant Pages

  • Re: newbie delay/sleep question
    ... microseconds and then do some other task. ... another interrupt within that 100 microseconds and the sleep I've been ... Jiffies are increased at every tick (kernel tick, not clock tick), so ...
    (comp.os.linux.development.system)
  • Re: newbie delay/sleep question
    ... microseconds and then do some other task. ... another interrupt within that 100 microseconds and the sleep I've been ... Jiffies are increased at every tick (kernel tick, not clock tick), so ...
    (comp.os.linux.development.system)
  • Re: newbie delay/sleep question
    ... microseconds and then do some other task. ... another interrupt within that 100 microseconds and the sleep I've been ... receive the interrupt and queue them up on a tasklet or work/wait queue ...
    (comp.os.linux.development.system)
  • Re: newbie delay/sleep question
    ... microseconds and then do some other task. ... another interrupt within that 100 microseconds and the sleep I've been ... Jiffies are increased at every tick, so ...
    (comp.os.linux.development.system)
  • Re: new here - wget ./configure
    ... Parsing authenticationMethod=simple ... stop: sleep 100000 microseconds ... restart: sleep 100000 microseconds ...
    (comp.sys.sun.admin)