[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wake_up_interruptible in irq handler?
On 10/3/05, Jan Hudec <bulb@xxxxxx> wrote:
> On Mon, Oct 03, 2005 at 16:06:26 +0900, NAHieu wrote:
> > Anybody please tell me: does wake_up_interruptible() sleep? I want to
> > call wake_up_interruptible() inside an irq handler, and if it may
> > sleep, I will need to run it from a tasklet instead of executing it
> > directly.
>
> No, it does not. Nor does any other wake_up* variant. If you look at the
> code, they start with taking a spinlock and end with releasing it, so
> they can't sleep.
>
> By the way, if it did, tasklet would _not_ help you. Tasklet is still
> not a process context.
process context? But why I need the process context here?
Thank you.
Hieu
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/