Re: Implementation of events in Linux Kernel

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

 



On Thu, Apr 15, 2004 at 01:40:10PM +0530, omanakuttan wrote:
> On Wed, 14 Apr 2004, rakesh wrote:
> 
> >  
> > Hi Mohan,
> >  
> >    How about sending a signal from an interrupt to a thread, where a thread is blocked or that particular signal. Please correct me if i am wrong.
> It must be okay, but a better way is to use wait queues. Let the thread
> sleep_on_interruptible() on a wait queue. Do a wake_up() from the interrupt
> handler.

Don't use sleep_on*, they are often racy. See this thread:
http://boudicca.tux.org/hypermail/linux-kernel/2001week05/0305.html


	Domen

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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