interruptible_sleep_on() vs wait_event_interruptible()

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

 



Hi,

is the only reason not to use interruptible_sleep_on() because of the 
race between when the driver 
decides to sleep and when the sleep_on is performed?

I have an application that use lots of interrupts so missing one isn't 
a problem.

what is the best way to make the event in wait_event_interruptible() 
atomic? 
can that be done with set_bit() and test_bit()?

thanks,

Chris.




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