completion or wait queues ?

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

 



Hello.

My driver needs to wait for the hardware to complete something.
I obviously want it to sleep (it is process context),
and when the operation will finish it will wake up the sleeping
context (the waking up will be in interrupt context).

Should I use completion variables or wait queues sleeping ?

Which is preferred  / recommended ?

In what cases are completions variables better and in what
cases are wait queues better ?

Thank You
naziir

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