Re: [linux-usb-devel] USB devices major/minor numbers

2002-01-02 Thread Mark McClelland
Amira Solomovici wrote: >>What kind of device do you have? >> >A SmartCard reader. Are there allocated major:minor numbers for such devices >(as there are for scanners, for example)? > Check out this link: http://www.linuxnet.com/software.html You'll need to install PC/SC Lite and the appropria

Re: [linux-usb-devel] USB devices major/minor numbers

2002-01-01 Thread Greg KH
On Tue, Jan 01, 2002 at 08:28:56AM +0200, Amira Solomovici wrote: > > > > What kind of device do you have? > > A SmartCard reader. Are there allocated major:minor numbers for such devices > (as there are for scanners, for example)? No there isn't. You have to apply for one, and convince me, a

RE: [linux-usb-devel] USB devices major/minor numbers

2001-12-31 Thread Amira Solomovici
> What kind of device do you have? A SmartCard reader. Are there allocated major:minor numbers for such devices (as there are for scanners, for example)? > > 3. If my driver should be able to manage more than one device, should I > > register at init() or probe() all the entries? or do it only

Re: [linux-usb-devel] USB devices major/minor numbers

2001-12-31 Thread Greg KH
On Mon, Dec 31, 2001 at 10:29:42AM +0200, Amira Solomovici wrote: > Hi, > > Thanks for your help. > > Assuming that the usb driver is written for kernel v2.4 and above, I suppose > I can use the devfs and dynamic allocation of major and minor numbers > instead of fixed minors. No, you still ne

RE: [linux-usb-devel] USB devices major/minor numbers

2001-12-31 Thread Amira Solomovici
Hi, Thanks for your help. One small question I still have: > You in the driver decide the minor. If I use the DEVFS_FL_AUTO_DEVNUM flag in devfs_register(), can I still control the minor given? Or is this given automatically as well? Thanks, Amira. ___

RE: [linux-usb-devel] USB devices major/minor numbers

2001-12-31 Thread Oliver.Neukum
> 1. What's the difference between usbdevfs and devfs? Is there a way of > searching the /proc/bus/usb directory for a file entry (driver) that manages > a certain device (by checking its vendor and product id)? Usbdevfs is a file system for getting information about usb devices and user space dr

RE: [linux-usb-devel] USB devices major/minor numbers

2001-12-31 Thread Amira Solomovici
[mailto:[EMAIL PROTECTED]] Sent: Sunday, December 30, 2001 7:21 PM To: Amira Solomovici Cc: Linux_Usb_Develop (E-mail) Subject: Re: [linux-usb-devel] USB devices major/minor numbers On Thu, Dec 27, 2001 at 01:39:00PM +0200, Amira Solomovici wrote: > Hi, > > I am writing a usb device driver t

Re: [linux-usb-devel] USB devices major/minor numbers

2001-12-30 Thread Greg KH
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 t

[linux-usb-devel] USB devices major/minor numbers

2001-12-27 Thread Amira Solomovici
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