On Thu, Jul 31, 2003 at 07:19:43PM +0200, Koen Van Renterghem wrote: > > > >You want more than one minor per USB device? During 2.5, > >usb_register_dev() could handle that, but no one ever used it that way, > >so it was changed to only dole out 1 minor at a time per device. > > It's a good thing to keep the code as clean as possible, but for me this > limits the possibilities. I can imagine that other developers will run into > similar trouble in the future. Maybe it should be reconsidered to allow > allocation of a block of minors, I don't think that it adds a lot of > complexity to the code. > I also consider it a good thing to keep the API as versatile as possible, > but thats just one persons opinion of course.
The "Linux way" is to not over-engineer things. I'll gladly change the api when your driver is added to the main kernel tree. Until then, if you want to live outside the tree, you'll have to patch the core usb code :) Just take a look at the code a few kernel versions ago to see what you should change the api to look like. > >Any reason why you have to write a kernel driver and can't do everything > >from libusb/usbfs? > > I'am working on something that can log data very fast. With 2.5.59 I was > able to transfer 40Mb/s sustained from the cypress FX2, over usb, to > harddisk. Using libusb or usbfs would introduce unwanted latency, and > I really need to eliminate all possible overhead. If you need speed like that, then yes, a kernel driver is the best option. Nice speed you have gotten, glad to see the host controller drivers working well. thanks, greg k-h ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
