Re: Implementation of events in Linux Kernel

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

 



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.
I think the thread is a kernel thread. if a user theread, the mechanism you
suggested should be fine.Though I would put an IOCTL and get it in the
kernel and then implement wait queue.


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