newbie question: synchronization between disconnect and usb_control_msg(), etc?

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

 



Hi,

One more, if I may...

The kernel documentation states that synchronization should occur between
calls to usb_bulk_msg(), usb_control_msg(), etc, and the disconnect function
so that if disconnect is invoked while any of these calls are pending, it will
wait for them to complete.  But I don't understand the hazard.  Presumably,
usb_bulk_msg(), etc, will return unsuccesfully if this situation occurs, which
the invoking function can handle.  What can (or should) the disconnect
function do that would cause a problem if a call to usb_control_msg() is still
pending?  Maybe this is related to my last question.

Thanks again,
Mike

----

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux