sleeping and waiting and tasklets



I have a question about the running context of threads and tasklets.

I have code that processes a packet of data. This code is called from a
tasklet (called by the ISR) and also from a timer routine.
This processing code can only do its job if there is space to output the
processed data. If both data buffers are full ( a very rare but not
impossible situation), then a timer is set and this code is then called from
the timer callback function.

My question is:

1) What is different about the running context of the tasklet vs the timer
callback.
2) Can functions like interruptible_sleep_on() wake_up_interruptible() and
down_interruptible() be used in either context?
3) Are there any special considerations that I should know about.

I am trying to avoid mysteries in advance (of course).

Thanks!
Bill

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.