Skip to contentSkip to conversation

tty fix TCSBRK comment

PATCH New Paul Fulghum 1 participant 1 message Jun 26, 2006 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty fix TCSBRK comment

Fix TCSBRK comment to prevent confusion or accidental removal.

drivers/char/tty_io.c +3 -4
@@ -2617,10 +2617,9 @@ int tty_ioctl(struct inode * inode, stru
 			tty->driver->break_ctl(tty, 0);
 			return 0;
 		case TCSBRK:   /* SVID version: non-zero arg --> no break */
-			/*
-			 * XXX is the above comment correct, or the
-			 * code below correct?  Is this ioctl used at
-			 * all by anyone?
+			/* non-zero arg means wait for all output data
+			 * to be sent (performed above) but don't send break.
+			 * This is used by the tcdrain() termios function.
 			 */
 			if (!arg)
 				return send_break(tty, 250);