summaryrefslogtreecommitdiffstats
path: root/doc/bsp_howto/console.t
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-10 14:36:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-12 16:11:25 +0200
commitfed92f5f67bcaeffa6cb6ceebf5ddfdbcaff7fb8 (patch)
treebb3edf6e2c9d1856a1a5fbecdb10a6b8e5893dbd /doc/bsp_howto/console.t
parenttermios: Expand critical section (diff)
downloadrtems-fed92f5f67bcaeffa6cb6ceebf5ddfdbcaff7fb8.tar.bz2
termios: Notify driver about inactive transmit
Returning this state in the return value leads to race conditions on SMP. The inactive state notification must be inside the critical section.
Diffstat (limited to '')
-rw-r--r--doc/bsp_howto/console.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/bsp_howto/console.t b/doc/bsp_howto/console.t
index f04a67fcf1..555cf044fe 100644
--- a/doc/bsp_howto/console.t
+++ b/doc/bsp_howto/console.t
@@ -408,6 +408,12 @@ static ssize_t my_driver_interrupt_write(int minor, const char *buf, size_t n)
* characters in the device data structure.
*/
+ /*
+ * Termios will set n to zero to indicate that the transmitter is
+ * now inactive. The output buffer is empty in this case. The
+ * driver may disable the transmit interrupts now.
+ */
+
return 0;
@}
@end group