On Tue, Jan 22, 2008 at 12:54:45PM +0000, Christian Schoenebeck wrote: > Am Dienstag, 22. Januar 2008 08:28:04 schrieben Sie: > > Am Dienstag, 22. Januar 2008 03:08:41 schrieb Christian Schoenebeck: > > > I'm using usb_register_dev() to create USB character devices under /dev. > > > As far as I can see it however one can only create one device for the > > > same USB interface, correct? > > > > Yes, that's a limitation. You have to use generic character devices to do > > what you want to do. > > But there is no existent character device function to actually create a > device > under /dev AFAIK. Forcing the user to use mknod is undesirable.
Um, I don't think you have explained the problem fully here. If you want to just create a random char device in the kernel, use the misc interface. It's infrastructure will automatically do the proper stuff so that udev will create a /dev node. Otherwise, if you are using your own major number, you will have to set up the needed class information properly so that udev knows how to create your nodes for you. But odds are you really don't need your own special major number, right? thanks, greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html