serial ioctl implementation

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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top