Oliver Neukum wrote:
Ok one more question.
There are only 16 devices. But does this limit the driver to 16 physical
devices outside the computer?
Or can I handle more than 16 devices.
Yes and no. If you register your own device, you can handle 256 devices. You can repeat this process for several majors. However major numbers are not plentiful.
256 is enough since there can be only 128 usb devices.
You can use dynamic assignment of minors in usb which means that you can handle up to 256 devices. But that needs user space support as yet unwritten.
Userspace support? you mean like to create the char files in /dev/usb/ .
Or you can make devfs a requirement for your driver. Then you can handle thousands of devices.
only want about 100 :-)
What is so wrong with this?My idea is to use the seek command te select the device and then read
and write to it.
Eek!
The /dev/port interface sorta works like this.
And this is pretty easy.
And this way I can handle 1000's of devices with just one char device file in /dev/
Then the user can make a thousand connections to that file and seek each one to the device he likes to use.
The only reason for more than 1 char device would be to allow more than 1 user at a time. I think.
I can make the seek thing a ioctl command. But that breaks compatibility with Kylix and I don't use the seek command for
anything else.
I don't see why this is wrong.
Cheers
-Heinrich
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel