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 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.

--
						 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