[Ilugc] Enumerating a new device from inside a kernel module

  • From: ajosephantony@xxxxxxxxxxx (Joseph Antony)
  • Date: Thu May 4 10:26:55 2006

Hi,

--- Shakthi Kannan <cyborg4k@xxxxxxxxx> wrote:

Hi Joseph,

--- Joseph Antony <ajosephantony@xxxxxxxxxxx> wrote:
A kernel module loads when a usb device with my
VID/PID is attached. 

... only when it is made modular (M).

Now, this kernel module has to

Which one?

pop-up another device instance so that the end
user
sees the entry of two devices 

You plugged in only one device.



(although in reality,
we
have only one VID/PID). 

Your terminology is totally confusing me.

Apologies for the confsuion. When a usb device comes
in, the kernel module will be loaded as per the normal
usb identification technique (i.e, in 2.6, udev finds
the module, loads it). At this point, I need to pop a
child device instance from this loaded kernel module.
The situation arises for me in this case. When SCM's
SDI010(SCR331-DI) is connected in winXP, although a
single device is connected, to a user, two devices are
enumerated and displayed. I need this implementation
in Linux. Here, pcsc-lite searches the usb bus for new
device arrival and loads the corresponding bundle. So,
I need to inform pcsc-lite about the second device
also. Here, I am stuck.

Thanks 
Joseph


1. You can use lsusb to view the devices attached to
the USB bus.

2. You can use USBView written by Grek Kroah:

http://www.kroah.com/linux/usb/


http://www.kroah.com/linux/usb/usbview-screenshot-1.0.jpg

3. If you use Ubuntu, they have
System->Administration->Device Manager to view
devices.

BTW, in the Linux kernel, all device enumeration
takes
place in usbcore.o (in 2.4) and usbcore.ko (in 2.6)
which are inside the kernel. So, your subject line
is
always true, and its not possible in any other way
in
Linux.

Regards,

SK

--
Shakthi Kannan
http://www.shakthimaan.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com ;
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx
with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




                
__________________________________________________________ 
Yahoo! India Answers: Share what you know. Learn something new. 
http://in.answers.yahoo.com

Other related posts: