Uart driver: on close, wait for output queue to drain.

This commit is contained in:
Sergey
2015-05-30 16:56:03 -07:00
parent f08aabff03
commit a234dfc7dc
2 changed files with 385 additions and 412 deletions

View File

@@ -211,6 +211,11 @@ int ttyselect (struct tty *tp, int rw);
*/
void ttyflush (struct tty *tp, int rw);
/*
* Wait for output to drain, and flush input.
*/
void ttywflush (struct tty *tp);
#endif /* KERNEL */
/* internal state bits */