Am Mittwoch, 22. Januar 2003 13:54 schrieb Heinrich du Toit: > Thanks for your quick reply. > > Oliver Neukum wrote: > >>Question1: How do I make my device show up automatically in the devfs? > >>or procfs? > > > >You register with devfs. To do so you need a call like this: > > usblp->devfs = devfs_register(usb_devfs_handle, name, ... > >in your probe method. > > usblp ? sorry I don't get this.
Just as an example how the printer driver does it. > But this basicly means you have to register the device as if it was just > another char device. > No special nothing from usb framework, right? Right. > So there is really no reason not to make the char interface the same way > as any other char device driver? No other reason, you can register a conventional character device just as well. > 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. 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. Or you can make devfs a requirement for your driver. Then you can handle thousands of devices. > My idea is to use the seek command te select the device and then read > and write to it. Eek! Regards Oliver ------------------------------------------------------- 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