0

For research i looked into Libusb to see how hotluging is done. For Linux, i found the corresponding source in libusb\os\linux_udev.c where a thread is started which makes a poll() on udev. However, after spending hours in the sources of Libusb I can't figure out how hotpluging in Windows is done.

In libusb\os\windows_winusb.c obviously the winusb driver is used to get a device list (static int winusb_get_device_list(..)) but this is not necearilly a hotplug thing. Can someone point me int the right direction?

I use usb4java (a libusb Java wrapper) in my project and can detect an attach/detach event just fine, but I want to know how it works.

mazi
  • 51
  • 8

1 Answers1

0

Just in case someone needs this. I found out that according to the libusb dev-forum, it can't. In my case this was done by the java4usb wrapper, which is hotplug-able because of the JavaX API javax.usb.

mazi
  • 51
  • 8