libusbgetdev is a library for USB device to block or character device correlation on Linux, macOS, and Windows.
It is written in C with the code base heavily inspired by libusb and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version.