Arbitrary DOS device name

Stefan Dösinger stefandoesinger at gmail.com
Mon Jan 24 05:26:58 CST 2022


Am Montag, 24. Jänner 2022, 13:13:23 EAT schrieb Daniel Kucera:

> I am reversing the driver and I'll create a Linux char device to handle
> those ioctl calls and talk to the USB device using libusb.

If I understand you right you want to create a $WINEPREFIX/dosdevices/d6CDE-0 
link to whatever char device your Linux driver creates, and that doesn't work 
because Wine will only do that for COM ports and other drives?

From Wine's point of view the proper solution is to load the original Windows 
device driver, have it talk to the USB hardware via libusb and the Windows 
software via the device it creates. Wine nowadays should have infrastructure 
to support that. I haven't used it myself though.

Beyond opening the device name, how would the ioctl forward work? Is it some 
standard serial port ioctl that pass throuh Wine to your driver fine? Or would 
you need to teach Wine to forward them as well?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20220124/15939343/attachment.sig>


More information about the wine-devel mailing list