Could someone explain to me the difference between wait_queue_head_t and
wait_queue_t? I'm trying to port some code from 2.2 to 2.4, and I'm getting
these two structures confused. What makes it worse is that the drivers in the
2.4 kernel which use these structures don't seem to explain their usage it.
For instance, I see this code a lot (from
/usr/src/linux-2.4.0-test2/drivers/usb/serial/digi_acceleport.c):
wait_queue_t wait;
init_waitqueue_entry( &wait, current );
add_wait_queue( q, &wait );
...
remove_wait_queue( q, &wait );
Why doesn't the code initialize the "struct list_head task_list" element in
wait_queue_t?
-- Timur Tabi - ttabi@interactivesi.com Interactive Silicon - http://www.interactivesi.comWhen replying to a mailing-list message, please don't cc: me, because then I'll just get two copies of the same message. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Oct 07 2000 - 21:00:19 EST