aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tty.h5
-rw-r--r--include/linux/tty_driver.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index 4cfd4a82fc31..fd4148d3a261 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -252,6 +252,7 @@ struct tty_struct {
252 struct rw_semaphore termios_rwsem; 252 struct rw_semaphore termios_rwsem;
253 struct mutex winsize_mutex; 253 struct mutex winsize_mutex;
254 spinlock_t ctrl_lock; 254 spinlock_t ctrl_lock;
255 spinlock_t flow_lock;
255 /* Termios values are protected by the termios rwsem */ 256 /* Termios values are protected by the termios rwsem */
256 struct ktermios termios, termios_locked; 257 struct ktermios termios, termios_locked;
257 struct termiox *termiox; /* May be NULL for unsupported */ 258 struct termiox *termiox; /* May be NULL for unsupported */
@@ -261,7 +262,7 @@ struct tty_struct {
261 unsigned long flags; 262 unsigned long flags;
262 int count; 263 int count;
263 struct winsize winsize; /* winsize_mutex */ 264 struct winsize winsize; /* winsize_mutex */
264 int stopped; 265 int stopped; /* flow_lock */
265 int flow_stopped; 266 int flow_stopped;
266 int hw_stopped; 267 int hw_stopped;
267 int packet; 268 int packet;
@@ -400,7 +401,9 @@ extern int tty_paranoia_check(struct tty_struct *tty, struct inode *inode,
400extern char *tty_name(struct tty_struct *tty, char *buf); 401extern char *tty_name(struct tty_struct *tty, char *buf);
401extern void tty_wait_until_sent(struct tty_struct *tty, long timeout); 402extern void tty_wait_until_sent(struct tty_struct *tty, long timeout);
402extern int tty_check_change(struct tty_struct *tty); 403extern int tty_check_change(struct tty_struct *tty);
404extern void __stop_tty(struct tty_struct *tty);
403extern void stop_tty(struct tty_struct *tty); 405extern void stop_tty(struct tty_struct *tty);
406extern void __start_tty(struct tty_struct *tty);
404extern void start_tty(struct tty_struct *tty); 407extern void start_tty(struct tty_struct *tty);
405extern int tty_register_driver(struct tty_driver *driver); 408extern int tty_register_driver(struct tty_driver *driver);
406extern int tty_unregister_driver(struct tty_driver *driver); 409extern int tty_unregister_driver(struct tty_driver *driver);
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h
index e48c608a8fa8..92e337c18839 100644
--- a/include/linux/tty_driver.h
+++ b/include/linux/tty_driver.h
@@ -152,6 +152,8 @@
152 * This routine notifies the tty driver that it should stop 152 * This routine notifies the tty driver that it should stop
153 * outputting characters to the tty device. 153 * outputting characters to the tty device.
154 * 154 *
155 * Called with ->flow_lock held. Serialized with start() method.
156 *
155 * Optional: 157 * Optional:
156 * 158 *
157 * Note: Call stop_tty not this method. 159 * Note: Call stop_tty not this method.
@@ -161,6 +163,8 @@
161 * This routine notifies the tty driver that it resume sending 163 * This routine notifies the tty driver that it resume sending
162 * characters to the tty device. 164 * characters to the tty device.
163 * 165 *
166 * Called with ->flow_lock held. Serialized with stop() method.
167 *
164 * Optional: 168 * Optional:
165 * 169 *
166 * Note: Call start_tty not this method. 170 * Note: Call start_tty not this method.