The difference between wait_queue_head and wait_queue in linux kernel
I can find many examples regarding wait_queue_head . It works as a signal, create a wait_queue_head , someone can sleep using it until someother kicks it up. But I can not find a good example of using wait_queue itself, supposedly very related to it. Could someone gives example, or under the hood of them? From Linux Device Drivers : The wait_queue_head_t type is a fairly simple structure, defined in <linux/wait.h> . It contains only a lock variable and a linked list of sleeping processes. The individual data items in the list are of type wait_queue_t , and the list is the generic list defined