On Mon, 16 Feb 2004, timer clock wrote:

> I do the followings in my driver.
> 
> struct file_operations my_fops = {
>       owner: THIS_MODULE,
>       open: my_open,
>       release : my_release,
>       read: my_read,
>       write: my_write,
> };
> 
> // my driver is responsible for the table entry
> devices
> static struct usb_device_id my_table [] = {
>       { USB_DEVICE(VENDOR_ID, PRODUCT_ID) },
>       { }
> };
> 
> MODULE_DEVICE_TABLE (usb, my_table);
> 
> // register the usb driver to usb subsystem with the 
> // following object
> static struct usb_driver my_usb_driver=  {
>       name:           "(my device)",
>       probe:          my_probe,
>       disconnect:     my_disconnect,
>       driver_list:    { NULL,NULL },
>       fops:           &my_fops,
>       minor:          MINOR_BASE,
>       id_table:       my_table,
> };
> 
> why usbcore(or which) doesn't export my kernel module
> information to the modules.usbmap? what may the
> problem be?

Do you #define VENDOR_ID to be 0x0123 and PRODUCT_ID to be 0x0002 ?

Do you run depmod after make modules_install (or does make modules_install
run it for you)?

Do you have an up-to-date version of depmod (you need at least
module-init-tools-0.9.9 for Linux 2.6)?

Alan Stern



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to