On Wed, 29 Jun 2005, matthieu castet wrote: > Hi, > > I am writing a driver for an usb device, and I want to support multi-device. > I want to allow some user configurations for the devices, so I use > module options and module_param_array. > > I would like to know if the device are always probed in the same order > if we don't plug/unplug device on the usb bus.
The order of probing depends on several things, such as the order in which the host controller drivers are loaded. As long as those things don't change, the order of probing devices will remain the same. > In case I want to support plug/unplug, is there standard way to do it or > it is considerered as worthless/too complex ? A USB driver _has_ to support plug/unplug; you have no choice. Yes, there is a standard way to do it. Look at any of the USB drivers already in the kernel. > I was considering to use device serial number. Many USB devices don't have a serial number. Alan Stern ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel