4/17/2023 0 Comments H usb optical mouse driverapple 0003:05AC:024F.0006: Fn key not found (Apple Wireless Keyboard clone?), disabling Fn key handling ![]() usb 1-13.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 1-13.1.2: New USB device found, idVendor=05ac, idProduct=024f, bcdDevice= 0.74 usb 1-13.1.2: new low-speed USB device number 10 using xhci_hcd usb 1-13.4: USB disconnect, device number 7 usb 1-13.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 ![]() ![]() usb 1-13.1: New USB device found, idVendor=05ac, idProduct=1006, bcdDevice=96.15 usb 1-13.1: new high-speed USB device number 9 using xhci_hcd usb 1-13.1.2: USB disconnect, device number 8 usb 1-13.1: USB disconnect, device number 6 usbcore: registered new interface driver pen_driverĪfter unplugged/plugged the device usbcore: deregistering interface driver pen_driver usbcore: deregistering interface driver pen_driver I cleared dmesg and rmmod and insmod usbDriver.ko /usbDriver2$ sudo rmmod usbDriver.ko If you see something that is odd please let me know : ) When I load the module I see it gets registered. This is the usb device I want to know about its status Bus 001 Device 015: ID 046d:c077 Logitech, Inc. MODULE_DESCRIPTION("USB PEN REGISTRATION DRIVER") Printk(KERN_INFO "PEN drive removed \n") Static void pen_disconnect(struct usb_interface * interface) Printk(KERN_INFO "Pen drive(X:X) plugged\n", id->idVendor, id->idProduct) Static int pen_probe(struct usb_interface *interface, const struct usb_device_id* id) However when I print it out I don't see any relevant information. Hi I am learning linux kernel and wrote a simple function as below and this is the USB port I want to know whether it is plugged in or unplugged.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |