Re: Non-blocking IO

2009-08-27 Thread Daniel Baluta
On Tue, Aug 25, 2009 at 11:42 AM, Shankar Ganesh wrote: > Also, i have q querry regarding poll in drivers. > > 1. driver poll driver - poll_wait()  adds to the wait queue. > > How this queue is woke-up when there is activity pending .i.e for example > ready to read ? Using wake_up_* functions. D

Re: Non-blocking IO

2009-08-26 Thread Shankar Ganesh
Also, i have q querry regarding poll in drivers. 1. driver poll driver - poll_wait() adds to the wait queue. How this queue is woke-up when there is activity pending .i.e for example ready to read ? Regards, Shankar On Thu, Aug 20, 2009 at 7:40 PM, Mulyadi Santosa wrote: > On 8/20/09, Shan

Non-blocking IO

2009-08-20 Thread Manish Rangankar
When you are in intrrupt context you can not access the process data structure. I think *Completion variable* should solve your purpose. The task waits for signal by calling *wait_for_completion* and by calling *complete* you can wake-up all the waiting task. In your case you can call *complete* f

Non-blocking IO

2009-08-20 Thread Shankar Ganesh
Hi Friends, I have an interrupt handler in my driver which is supposed to wake-up/intimate user process to proceed . How do Linux supports this mechanism ? I have a choice of using select/poll in user space and implementing poll fops in my driver. Is there any alternative better approach availabl