On Thu, Dec 27, 2001 at 01:39:00PM +0200, Amira Solomovici wrote:
> Hi,
> 
> I am writing a usb device driver that is loaded as a module into the kernel.
> My question is who allocates the major and minor numbers for my device
> driver (it's for a smartcard reader)? I saw in the device list that there
> are allocated major number for other usb devices, but not for the type I
> need.

I'm the person in charge of allocating the usb minor numbers right now.
If you will post your driver, and why you think you need a minor number,
I (and the mailing list) can review and discuss it.

> Also, I understood that there is a way to communicate with the kernel driver
> from a user mode application without using the mknod command to create the
> link to the driver. I would be grateful if someone could explain how to use
> it and how to open a communication channel with the driver if this dynamic
> way is used.

Your driver can create a /proc entry that userspace can use to talk to
your driver.  Or it can export a filesystem (like the pci hotplug driver
does) and have userspace programs interact with the driver through it.

Hope this helps,

greg k-h

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to