I write a sample code(user mode) to test the serial
I can open COM1 and write string to COM1.
But, when I want to read data from COM1, the program will
block at read function.
I trace the driver source code.
When the program execute write operation, it will call
tty_write( ) at
Then it will call gs_write( ) at
When the program execute read operation,it will call
tty_read( ) at
Then I don't know which function would be
But it was blocked at operation which called
(tty->ldisc.read)(tty,file,buf,count), as the
/* Function tty_read( ) in
/* Program will be blocked
What parameter should I reset?
Thanks in advance.