serial ioctl implementation

  • Thread starter Thread starter gallon sylvestre
  • Start date Start date
G

gallon sylvestre

Hello,

I try to implement a serial driver with kdmf and I've got a problem with
the implementation of IOCTL_SERIAL_GET_COMMSTATUS.

My device load good. But when I open a hyperterminal the first input is
read, the second do nothing and when the third appears hyperterminal
loop on IOCTL_SERIAL_GET_COMMSTATUS and freeze.

Here is my code :
http://pastebin.com/f38ae7c20

Here is my debug output:
http://pastebin.com/m3de139e3

For the debug output, the first key pressed on hyperterminal produce the
write, the second do nothing and when I pressed a third time a key the
IOCTL_SERIAL_GET_COMMSTATUS loop appears and don't stop.

The only solution to stop that is to kill hyperterminal with the task
manager.

Thanks for you help :)
 
Back
Top