On Tue, 4 Jan 2005, Matthew Dharm wrote:

> > Another possibility is to write a userspace program.  Use libusb to send 
> > the commands you need, and then use the USBDEVFS_CONNECT ioctl to cause 
> > the usb-storage driver to rebind to the stick.
> > 
> > The advantage of this approach is that it's simpler and easier than 
> > writing a kernel driver.  The disadvantage is that it won't be get run 
> > automatically unless you set up special hotplug scripts.
> 
> He'll also have a problem guaranteeing that his code runs before the
> INQUIRY commands, as he wants.

In fact it probably _won't_ run before the INQUIRY commands etc.  The 
initial probing will fail.  But then the program can run and when it 
rebinds the drivers, probing will start all over again.  Presumably the 
second time it will work.

Alan Stern



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to