On Thu, Oct 24, 2002 at 10:14:48AM +0200, Oliver Neukum wrote:
> Am Donnerstag, 24. Oktober 2002 09:48 schrieb Greg KH:
> >
> > No, the last state will happen when the last reference count of the
> > device is removed.  So as long as someone (driver, core, who ever) has
> > called usb_get_dev(), the device will stick around.  In short, we can
> > control this.
> 
> Control it we can, prevent it we can't. You see a driver will have to call
> it at some point, probably in disconnect. If you really want to do this,
> the drivers have to switch to usb_get_dev() on open() and usb_put_dev()
> on flush(). That actually might be the best solution now that I think of it.
> 
> What do you think?

Yes, I agree this is the best thing to do (but not just yet, wait a week
or so...)

thanks,

greg k-h


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to