Re: wait_event_interruptible and wake_up_interruptible

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

 



aksingh@hss.hns.com wrote:



Hi,


  Once I call wait_event_interruptible, is it important to call
wake_up_interruptible sometime later. wait_even_interruptible would
automatically awaken the sleeping process when the condition it takes as an
argument evaluates to TRUE, so in which specific cases do we require a
separate wake_up_interruptible. ?

the function wake_up_interruptible is used with the other function interruptible_sleep_on.
interruptible_sleep_on put the current process in a sleeping state and add it to the wait queue passed in paramter. When you call wake_up_interruptible, all the processes in the wait queue passed in paramter are putted in a RUNNING state and deleted from the 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