diff options
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r-- | include/linux/tty.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 4d3702bade03..381085e45cca 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -184,21 +184,22 @@ struct tty_struct { | |||
184 | struct tty_ldisc ldisc; | 184 | struct tty_ldisc ldisc; |
185 | struct mutex termios_mutex; | 185 | struct mutex termios_mutex; |
186 | spinlock_t ctrl_lock; | 186 | spinlock_t ctrl_lock; |
187 | /* Termios values are protected by the termios mutex */ | ||
187 | struct ktermios *termios, *termios_locked; | 188 | struct ktermios *termios, *termios_locked; |
188 | char name[64]; | 189 | char name[64]; |
189 | struct pid *pgrp; | 190 | struct pid *pgrp; /* Protected by ctrl lock */ |
190 | struct pid *session; | 191 | struct pid *session; |
191 | unsigned long flags; | 192 | unsigned long flags; |
192 | int count; | 193 | int count; |
193 | struct winsize winsize; | 194 | struct winsize winsize; /* termios mutex */ |
194 | unsigned char stopped:1, hw_stopped:1, flow_stopped:1, packet:1; | 195 | unsigned char stopped:1, hw_stopped:1, flow_stopped:1, packet:1; |
195 | unsigned char low_latency:1, warned:1; | 196 | unsigned char low_latency:1, warned:1; |
196 | unsigned char ctrl_status; | 197 | unsigned char ctrl_status; /* ctrl_lock */ |
197 | unsigned int receive_room; /* Bytes free for queue */ | 198 | unsigned int receive_room; /* Bytes free for queue */ |
198 | 199 | ||
199 | struct tty_struct *link; | 200 | struct tty_struct *link; |
200 | struct fasync_struct *fasync; | 201 | struct fasync_struct *fasync; |
201 | struct tty_bufhead buf; | 202 | struct tty_bufhead buf; /* Locked internally */ |
202 | int alt_speed; /* For magic substitution of 38400 bps */ | 203 | int alt_speed; /* For magic substitution of 38400 bps */ |
203 | wait_queue_head_t write_wait; | 204 | wait_queue_head_t write_wait; |
204 | wait_queue_head_t read_wait; | 205 | wait_queue_head_t read_wait; |
@@ -212,6 +213,7 @@ struct tty_struct { | |||
212 | /* | 213 | /* |
213 | * The following is data for the N_TTY line discipline. For | 214 | * The following is data for the N_TTY line discipline. For |
214 | * historical reasons, this is included in the tty structure. | 215 | * historical reasons, this is included in the tty structure. |
216 | * Mostly locked by the BKL. | ||
215 | */ | 217 | */ |
216 | unsigned int column; | 218 | unsigned int column; |
217 | unsigned char lnext:1, erasing:1, raw:1, real_raw:1, icanon:1; | 219 | unsigned char lnext:1, erasing:1, raw:1, real_raw:1, icanon:1; |