On Mon, Jan 16, 2006 at 08:39:06AM -0800, mayank rana wrote: > hi to all > > I am working on writing device driver for USB mouse. Now I studied > the architecture of USB mouse , i.e Configuration,Interface,Endpoint. > I am also able to detect USB mouse using my code. I am not getting > how to write probe function which is basically used for initializing > above parameters. If somebody is able to tell me flow of probe > funcation, I am very grateful to him. Have you read the USB documentation that is included in the kernel source tree? Look in Documentation/DocBook/usb and writing_usb_driver (but the writing file is a bit out of date.) Also, the third edition of Linux Device Drivers (free online) has a whole chapter all about USB that you should look at. And, the kernel already has 2 USB mice drivers in it, you might want to not duplicate the work that has aready been done, and just use and/or look at them. good luck, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/