From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Sat, 30 May 2015 00:39:46 -0700 Subject: Stop usbhid from claiming usb device on hotplug In-Reply-To: References: <20150529211419.GA1943@kroah.com> Message-ID: <20150530073946.GA5526@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Sat, May 30, 2015 at 01:43:20AM -0400, Armin Moradi wrote: > >> I'm writing a kernel module, but probe() is never called since usbhid > >> claims the usb device as soon as the device is plugged in. > > > > What type of module for what type of device? And why do you want to > > override the hid driver from binding to it? > > > > thanks, > > > > greg k-h > > I'm just learning about device drivers, so I'm writing a dummy usb > device driver. I've pasted the code here (I hope the formatting is > correct): This was for a challenge that doesn't want you to ask in public, sorry, I'm not going to answer it. best of luck, greg k-h