[linux-usb-devel] Re: first code

2004-02-26 Thread DeLeTe
#define MODULE #define __KERNEL__ #include #include #include #define USB_SKEL_VENDOR_ID 0x045e #define USB_SKEL_PRODUCT_ID 0x0039 MODULE_LICENSE("GPL"); static struct usb_device_id id_table [] = { { USB_D

[linux-usb-devel] Re: Re: first code

2004-02-26 Thread DeLeTe
I added in the code: MODULE_DEVICE_TABLE(usb, id_table); and: name: "Usb test", id_table: id_table, what is "usb" , it's not define in my code and i don't have any compilation error... ? But same with this change my code doesn't detect new plugging :( I don't understand where is the problem be

[linux-usb-devel] first code

2004-02-25 Thread DeLeTe
Hi, I'm new in kernel programming and i would like to do a simple code witch can detect and plug/deplug usb device. So I read usb-skeleton.c and there is some line I don't understand: /* Define these values to match your devices */ #define USB_SKEL_VENDOR_ID 0xfff0 #defi