Re: wake_up_interruptible in irq handler?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 03, 2005 at 17:39:15 +0900, NAHieu wrote:
> 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?

You don't, because it does not sleep.

If it did sleep, you would need process context, because you can only
sleep in process context.

--
						 Jan 'Bulb' Hudec <bulb@xxxxxx>

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux