sleeping and waiting and tasklets
- From: bill.at.@xxxxxxxxxxxxxxxxxxxxxxxxxx
- Date: Thu, 5 Jan 2006 03:12:05 GMT
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
.
- Follow-Ups:
- Re: sleeping and waiting and tasklets
- From: Peter Z
- Re: sleeping and waiting and tasklets
- Prev by Date: adjtime limited to 2145 seconds?
- Next by Date: Re: Page fault question (zero filling)
- Previous by thread: adjtime limited to 2145 seconds?
- Next by thread: Re: sleeping and waiting and tasklets
- Index(es):