On Tue, Jan 13, 2004 at 05:29:10PM -0500, Alan Stern wrote:
> On Tue, 13 Jan 2004, Nemosoft Unv. wrote:
> 
> > Hmm, that raises the question: which device gets removed first on unplug? 
> > the usb_device or the video_device? This has been indeed quite difficult to 
> > fix in the past, as either device could disappear any time. If this solved 
> > that problem, only the better.
> 
> There are no guarantees.  Right now, the interface that gets removed first
> is the one that is listed first in the configuration descriptor.  But this
> might change in the future so that the one with a lower bInterface value
> gets removed first.

No, he is asking about the video structure, not the usb interfaces :)

A user could have a device open and then the device is removed.  Or the
device could not be open, and then removed, the driver needs to be able
to handle either situation.

Now that the video subsystem has been properly reference counted, the
v4l drivers have had to also change.

Hope this helps,

greg k-h


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to