On Mon, Dec 31, 2001 at 10:29:42AM +0200, Amira Solomovici wrote: > Hi, > > Thanks for your help. > > Assuming that the usb driver is written for kernel v2.4 and above, I suppose > I can use the devfs and dynamic allocation of major and minor numbers > instead of fixed minors.
No, you still need to reserve a minor number (for the 99.999% of the machines out there not running devfs only.) > I read some stuff about it, but since I'm new to Linux I still have a few > questions that I would be happy if you could help me with: > > 1. What's the difference between usbdevfs and devfs? Is there a way of > searching the /proc/bus/usb directory for a file entry (driver) that manages > a certain device (by checking its vendor and product id)? Two totally different filesystems, bad choice of name (for the usbdevfs name :( You can search /proc/bus/usb and interact with the device through the entry in the tree. If your device can be controlled through usbdevfs fully, then it does not need a kernel driver, or a major/minor number. What kind of device do you have? > 3. If my driver should be able to manage more than one device, should I > register at init() or probe() all the entries? or do it only on demand? More than one type of device, or more than one device of the same type? thanks, greg k-h _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel