Check https://www.kernel.org/doc/html/latest/driver-api/usb/usb.html#the-ioctl-requests to be sure that everything is handled correctly under Linux.