tag | line | file | source code |
tty | 86 | drivers/char/console.c | int set_selection(const int arg, struct tty_struct *tty); |
tty | 87 | drivers/char/console.c | int paste_selection(struct tty_struct *tty); |
tty | 787 | drivers/char/console.c | static void respond_string(char * p, struct tty_struct * tty) |
tty | 790 | drivers/char/console.c | tty_insert_flip_char(tty, *p, 0); |
tty | 793 | drivers/char/console.c | tty_schedule_flip(tty); |
tty | 796 | drivers/char/console.c | static void cursor_report(int currcons, struct tty_struct * tty) |
tty | 801 | drivers/char/console.c | respond_string(buf, tty); |
tty | 805 | drivers/char/console.c | static void mouse_report(int currcons, struct tty_struct * tty, |
tty | 812 | drivers/char/console.c | respond_string(buf, tty); |
tty | 816 | drivers/char/console.c | static inline void status_report(int currcons, struct tty_struct * tty) |
tty | 818 | drivers/char/console.c | respond_string("\033[0n", tty); /* Terminal ok */ |
tty | 821 | drivers/char/console.c | static inline void respond_ID(int currcons, struct tty_struct * tty) |
tty | 823 | drivers/char/console.c | respond_string(VT102ID, tty); |
tty | 1086 | drivers/char/console.c | static void con_stop(struct tty_struct *tty) |
tty | 1095 | drivers/char/console.c | static void con_start(struct tty_struct *tty) |
tty | 1101 | drivers/char/console.c | static int con_write(struct tty_struct * tty, int from_user, |
tty | 1106 | drivers/char/console.c | struct vt_struct *vt = (struct vt_struct *)tty->driver_data; |
tty | 1119 | drivers/char/console.c | while (!tty->stopped && count) { |
tty | 1213 | drivers/char/console.c | respond_ID(currcons,tty); |
tty | 1274 | drivers/char/console.c | status_report(currcons,tty); |
tty | 1276 | drivers/char/console.c | cursor_report(currcons,tty); |
tty | 1338 | drivers/char/console.c | respond_ID(currcons,tty); |
tty | 1434 | drivers/char/console.c | static int con_write_room(struct tty_struct *tty) |
tty | 1436 | drivers/char/console.c | if (tty->stopped) |
tty | 1441 | drivers/char/console.c | static int con_chars_in_buffer(struct tty_struct *tty) |
tty | 1512 | drivers/char/console.c | static void con_throttle(struct tty_struct *tty) |
tty | 1516 | drivers/char/console.c | static void con_unthrottle(struct tty_struct *tty) |
tty | 1518 | drivers/char/console.c | struct vt_struct *vt = (struct vt_struct *) tty->driver_data; |
tty | 1794 | drivers/char/console.c | int con_open(struct tty_struct *tty, struct file * filp) |
tty | 1798 | drivers/char/console.c | idx = MINOR(tty->device) - tty->driver.minor_start; |
tty | 1803 | drivers/char/console.c | tty->driver_data = &vt_cons[idx]; |
tty | 1805 | drivers/char/console.c | if (!tty->winsize.ws_row && !tty->winsize.ws_col) { |
tty | 1806 | drivers/char/console.c | tty->winsize.ws_row = video_num_lines; |
tty | 1807 | drivers/char/console.c | tty->winsize.ws_col = video_num_columns; |
tty | 1898 | drivers/char/console.c | int set_selection(const int arg, struct tty_struct *tty) |
tty | 1923 | drivers/char/console.c | mouse_report(currcons, tty, sel_mode & 15, xs, ys); |
tty | 2050 | drivers/char/console.c | int paste_selection(struct tty_struct *tty) |
tty | 2055 | drivers/char/console.c | struct vt_struct *vt = (struct vt_struct *) tty->driver_data; |
tty | 2064 | drivers/char/console.c | if (test_bit(TTY_THROTTLED, &tty->flags)) { |
tty | 2068 | drivers/char/console.c | l = MIN(c, tty->ldisc.receive_room(tty)); |
tty | 2069 | drivers/char/console.c | tty->ldisc.receive_buf(tty, bp, 0, l); |
tty | 101 | drivers/char/keyboard.c | static struct tty_struct * tty = NULL; |
tty | 234 | drivers/char/keyboard.c | tty = ttytab[fg_console]; |
tty | 341 | drivers/char/keyboard.c | (vc_kbd_mode(kbd,VC_REPEAT) && tty && |
tty | 342 | drivers/char/keyboard.c | (L_ECHO(tty) || (tty->driver.chars_in_buffer(tty) == 0)))) { |
tty | 367 | drivers/char/keyboard.c | if (tty) { |
tty | 368 | drivers/char/keyboard.c | tty_insert_flip_char(tty, ch, 0); |
tty | 369 | drivers/char/keyboard.c | tty_schedule_flip(tty); |
tty | 376 | drivers/char/keyboard.c | if (!tty) |
tty | 380 | drivers/char/keyboard.c | tty_insert_flip_char(tty, *cp, 0); |
tty | 383 | drivers/char/keyboard.c | tty_schedule_flip(tty); |
tty | 436 | drivers/char/keyboard.c | if (rep || !tty) |
tty | 444 | drivers/char/keyboard.c | if (tty->stopped) |
tty | 445 | drivers/char/keyboard.c | start_tty(tty); |
tty | 447 | drivers/char/keyboard.c | stop_tty(tty); |
tty | 476 | drivers/char/keyboard.c | if (!tty || (tty->termios && I_IGNBRK(tty))) |
tty | 478 | drivers/char/keyboard.c | tty_insert_flip_char(tty, 0, TTY_BREAK); |
tty | 503 | drivers/char/keyboard.c | do_SAK(tty); |
tty | 58 | drivers/char/n_tty.c | static inline void put_tty_queue(unsigned char c, struct tty_struct *tty) |
tty | 60 | drivers/char/n_tty.c | if (tty->read_cnt < N_TTY_BUF_SIZE) { |
tty | 61 | drivers/char/n_tty.c | tty->read_buf[tty->read_head] = c; |
tty | 62 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + 1) & (N_TTY_BUF_SIZE-1); |
tty | 63 | drivers/char/n_tty.c | tty->read_cnt++; |
tty | 70 | drivers/char/n_tty.c | void n_tty_flush_buffer(struct tty_struct * tty) |
tty | 72 | drivers/char/n_tty.c | tty->read_head = tty->read_tail = tty->read_cnt = 0; |
tty | 73 | drivers/char/n_tty.c | tty->canon_head = tty->canon_data = tty->erasing = 0; |
tty | 74 | drivers/char/n_tty.c | memset(&tty->read_flags, 0, sizeof tty->read_flags); |
tty | 76 | drivers/char/n_tty.c | if (!tty->link) |
tty | 79 | drivers/char/n_tty.c | if (tty->driver.unthrottle) |
tty | 80 | drivers/char/n_tty.c | (tty->driver.unthrottle)(tty); |
tty | 81 | drivers/char/n_tty.c | if (tty->link->packet) { |
tty | 82 | drivers/char/n_tty.c | tty->ctrl_status |= TIOCPKT_FLUSHREAD; |
tty | 83 | drivers/char/n_tty.c | wake_up_interruptible(&tty->link->read_wait); |
tty | 90 | drivers/char/n_tty.c | int n_tty_chars_in_buffer(struct tty_struct *tty) |
tty | 92 | drivers/char/n_tty.c | return tty->read_cnt; |
tty | 99 | drivers/char/n_tty.c | static int opost(unsigned char c, struct tty_struct *tty) |
tty | 103 | drivers/char/n_tty.c | space = tty->driver.write_room(tty); |
tty | 107 | drivers/char/n_tty.c | if (O_OPOST(tty)) { |
tty | 110 | drivers/char/n_tty.c | if (O_ONLRET(tty)) |
tty | 111 | drivers/char/n_tty.c | tty->column = 0; |
tty | 112 | drivers/char/n_tty.c | if (O_ONLCR(tty)) { |
tty | 115 | drivers/char/n_tty.c | tty->driver.put_char(tty, '\r'); |
tty | 116 | drivers/char/n_tty.c | tty->column = 0; |
tty | 118 | drivers/char/n_tty.c | tty->canon_column = tty->column; |
tty | 121 | drivers/char/n_tty.c | if (O_ONOCR(tty) && tty->column == 0) |
tty | 123 | drivers/char/n_tty.c | if (O_OCRNL(tty)) { |
tty | 125 | drivers/char/n_tty.c | if (O_ONLRET(tty)) |
tty | 126 | drivers/char/n_tty.c | tty->canon_column = tty->column = 0; |
tty | 129 | drivers/char/n_tty.c | tty->canon_column = tty->column = 0; |
tty | 132 | drivers/char/n_tty.c | spaces = 8 - (tty->column & 7); |
tty | 133 | drivers/char/n_tty.c | if (O_TABDLY(tty) == XTABS) { |
tty | 136 | drivers/char/n_tty.c | tty->column += spaces; |
tty | 137 | drivers/char/n_tty.c | tty->driver.write(tty, 0, " ", spaces); |
tty | 140 | drivers/char/n_tty.c | tty->column += spaces; |
tty | 143 | drivers/char/n_tty.c | if (tty->column > 0) |
tty | 144 | drivers/char/n_tty.c | tty->column--; |
tty | 147 | drivers/char/n_tty.c | if (O_OLCUC(tty)) |
tty | 150 | drivers/char/n_tty.c | tty->column++; |
tty | 154 | drivers/char/n_tty.c | tty->driver.put_char(tty, c); |
tty | 158 | drivers/char/n_tty.c | static inline void put_char(unsigned char c, struct tty_struct *tty) |
tty | 160 | drivers/char/n_tty.c | tty->driver.put_char(tty, c); |
tty | 165 | drivers/char/n_tty.c | static void echo_char(unsigned char c, struct tty_struct *tty) |
tty | 167 | drivers/char/n_tty.c | if (L_ECHOCTL(tty) && iscntrl(c) && c != '\t') { |
tty | 168 | drivers/char/n_tty.c | put_char('^', tty); |
tty | 169 | drivers/char/n_tty.c | put_char(c ^ 0100, tty); |
tty | 170 | drivers/char/n_tty.c | tty->column += 2; |
tty | 172 | drivers/char/n_tty.c | opost(c, tty); |
tty | 175 | drivers/char/n_tty.c | static inline void finish_erasing(struct tty_struct *tty) |
tty | 177 | drivers/char/n_tty.c | if (tty->erasing) { |
tty | 178 | drivers/char/n_tty.c | put_char('/', tty); |
tty | 179 | drivers/char/n_tty.c | tty->column += 2; |
tty | 180 | drivers/char/n_tty.c | tty->erasing = 0; |
tty | 184 | drivers/char/n_tty.c | static void eraser(unsigned char c, struct tty_struct *tty) |
tty | 189 | drivers/char/n_tty.c | if (tty->read_head == tty->canon_head) { |
tty | 193 | drivers/char/n_tty.c | if (c == ERASE_CHAR(tty)) |
tty | 195 | drivers/char/n_tty.c | else if (c == WERASE_CHAR(tty)) |
tty | 198 | drivers/char/n_tty.c | if (!L_ECHO(tty)) { |
tty | 199 | drivers/char/n_tty.c | tty->read_cnt -= ((tty->read_head - tty->canon_head) & |
tty | 201 | drivers/char/n_tty.c | tty->read_head = tty->canon_head; |
tty | 204 | drivers/char/n_tty.c | if (!L_ECHOK(tty) || !L_ECHOKE(tty)) { |
tty | 205 | drivers/char/n_tty.c | tty->read_cnt -= ((tty->read_head - tty->canon_head) & |
tty | 207 | drivers/char/n_tty.c | tty->read_head = tty->canon_head; |
tty | 208 | drivers/char/n_tty.c | finish_erasing(tty); |
tty | 209 | drivers/char/n_tty.c | echo_char(KILL_CHAR(tty), tty); |
tty | 211 | drivers/char/n_tty.c | if (L_ECHOK(tty)) |
tty | 212 | drivers/char/n_tty.c | opost('\n', tty); |
tty | 219 | drivers/char/n_tty.c | while (tty->read_head != tty->canon_head) { |
tty | 220 | drivers/char/n_tty.c | head = (tty->read_head - 1) & (N_TTY_BUF_SIZE-1); |
tty | 221 | drivers/char/n_tty.c | c = tty->read_buf[head]; |
tty | 229 | drivers/char/n_tty.c | tty->read_head = head; |
tty | 230 | drivers/char/n_tty.c | tty->read_cnt--; |
tty | 231 | drivers/char/n_tty.c | if (L_ECHO(tty)) { |
tty | 232 | drivers/char/n_tty.c | if (L_ECHOPRT(tty)) { |
tty | 233 | drivers/char/n_tty.c | if (!tty->erasing) { |
tty | 234 | drivers/char/n_tty.c | put_char('\\', tty); |
tty | 235 | drivers/char/n_tty.c | tty->column++; |
tty | 236 | drivers/char/n_tty.c | tty->erasing = 1; |
tty | 238 | drivers/char/n_tty.c | echo_char(c, tty); |
tty | 239 | drivers/char/n_tty.c | } else if (!L_ECHOE(tty)) { |
tty | 240 | drivers/char/n_tty.c | echo_char(ERASE_CHAR(tty), tty); |
tty | 242 | drivers/char/n_tty.c | unsigned int col = tty->canon_column; |
tty | 243 | drivers/char/n_tty.c | unsigned long tail = tty->canon_head; |
tty | 246 | drivers/char/n_tty.c | while (tail != tty->read_head) { |
tty | 247 | drivers/char/n_tty.c | c = tty->read_buf[tail]; |
tty | 251 | drivers/char/n_tty.c | if (L_ECHOCTL(tty)) |
tty | 259 | drivers/char/n_tty.c | while (tty->column > col) { |
tty | 261 | drivers/char/n_tty.c | put_char('\b', tty); |
tty | 262 | drivers/char/n_tty.c | tty->column--; |
tty | 265 | drivers/char/n_tty.c | if (iscntrl(c) && L_ECHOCTL(tty)) { |
tty | 266 | drivers/char/n_tty.c | put_char('\b', tty); |
tty | 267 | drivers/char/n_tty.c | put_char(' ', tty); |
tty | 268 | drivers/char/n_tty.c | put_char('\b', tty); |
tty | 269 | drivers/char/n_tty.c | tty->column--; |
tty | 271 | drivers/char/n_tty.c | if (!iscntrl(c) || L_ECHOCTL(tty)) { |
tty | 272 | drivers/char/n_tty.c | put_char('\b', tty); |
tty | 273 | drivers/char/n_tty.c | put_char(' ', tty); |
tty | 274 | drivers/char/n_tty.c | put_char('\b', tty); |
tty | 275 | drivers/char/n_tty.c | tty->column--; |
tty | 282 | drivers/char/n_tty.c | if (tty->read_head == tty->canon_head) |
tty | 283 | drivers/char/n_tty.c | finish_erasing(tty); |
tty | 286 | drivers/char/n_tty.c | static void isig(int sig, struct tty_struct *tty) |
tty | 288 | drivers/char/n_tty.c | if (tty->pgrp > 0) |
tty | 289 | drivers/char/n_tty.c | kill_pg(tty->pgrp, sig, 1); |
tty | 290 | drivers/char/n_tty.c | if (!L_NOFLSH(tty)) { |
tty | 291 | drivers/char/n_tty.c | n_tty_flush_buffer(tty); |
tty | 292 | drivers/char/n_tty.c | if (tty->driver.flush_buffer) |
tty | 293 | drivers/char/n_tty.c | tty->driver.flush_buffer(tty); |
tty | 297 | drivers/char/n_tty.c | static inline void n_tty_receive_break(struct tty_struct *tty) |
tty | 299 | drivers/char/n_tty.c | if (I_IGNBRK(tty)) |
tty | 301 | drivers/char/n_tty.c | if (I_BRKINT(tty)) { |
tty | 302 | drivers/char/n_tty.c | isig(SIGINT, tty); |
tty | 305 | drivers/char/n_tty.c | if (I_PARMRK(tty)) { |
tty | 306 | drivers/char/n_tty.c | put_tty_queue('\377', tty); |
tty | 307 | drivers/char/n_tty.c | put_tty_queue('\0', tty); |
tty | 309 | drivers/char/n_tty.c | put_tty_queue('\0', tty); |
tty | 310 | drivers/char/n_tty.c | wake_up_interruptible(&tty->read_wait); |
tty | 313 | drivers/char/n_tty.c | static inline void n_tty_receive_overrun(struct tty_struct *tty) |
tty | 317 | drivers/char/n_tty.c | tty->num_overrun++; |
tty | 318 | drivers/char/n_tty.c | if (tty->overrun_time < (jiffies - HZ)) { |
tty | 319 | drivers/char/n_tty.c | printk("%s: %d input overrun(s)\n", _tty_name(tty, buf), |
tty | 320 | drivers/char/n_tty.c | tty->num_overrun); |
tty | 321 | drivers/char/n_tty.c | tty->overrun_time = jiffies; |
tty | 322 | drivers/char/n_tty.c | tty->num_overrun = 0; |
tty | 326 | drivers/char/n_tty.c | static inline void n_tty_receive_parity_error(struct tty_struct *tty, |
tty | 329 | drivers/char/n_tty.c | if (I_IGNPAR(tty)) { |
tty | 332 | drivers/char/n_tty.c | if (I_PARMRK(tty)) { |
tty | 333 | drivers/char/n_tty.c | put_tty_queue('\377', tty); |
tty | 334 | drivers/char/n_tty.c | put_tty_queue('\0', tty); |
tty | 335 | drivers/char/n_tty.c | put_tty_queue(c, tty); |
tty | 337 | drivers/char/n_tty.c | put_tty_queue('\0', tty); |
tty | 338 | drivers/char/n_tty.c | wake_up_interruptible(&tty->read_wait); |
tty | 341 | drivers/char/n_tty.c | static inline void n_tty_receive_char(struct tty_struct *tty, unsigned char c) |
tty | 343 | drivers/char/n_tty.c | if (tty->raw) { |
tty | 344 | drivers/char/n_tty.c | put_tty_queue(c, tty); |
tty | 348 | drivers/char/n_tty.c | if (tty->stopped && I_IXON(tty) && I_IXANY(tty) && L_IEXTEN(tty)) { |
tty | 349 | drivers/char/n_tty.c | start_tty(tty); |
tty | 353 | drivers/char/n_tty.c | if (I_ISTRIP(tty)) |
tty | 355 | drivers/char/n_tty.c | if (I_IUCLC(tty) && L_IEXTEN(tty)) |
tty | 364 | drivers/char/n_tty.c | if (!test_bit(c, &tty->process_char_map) || tty->lnext) { |
tty | 365 | drivers/char/n_tty.c | finish_erasing(tty); |
tty | 366 | drivers/char/n_tty.c | tty->lnext = 0; |
tty | 367 | drivers/char/n_tty.c | if (L_ECHO(tty)) { |
tty | 368 | drivers/char/n_tty.c | if (tty->read_cnt >= N_TTY_BUF_SIZE-1) { |
tty | 369 | drivers/char/n_tty.c | put_char('\a', tty); /* beep if no space */ |
tty | 373 | drivers/char/n_tty.c | if (tty->canon_head == tty->read_head) |
tty | 374 | drivers/char/n_tty.c | tty->canon_column = tty->column; |
tty | 375 | drivers/char/n_tty.c | echo_char(c, tty); |
tty | 377 | drivers/char/n_tty.c | if (I_PARMRK(tty) && c == (unsigned char) '\377') |
tty | 378 | drivers/char/n_tty.c | put_tty_queue(c, tty); |
tty | 379 | drivers/char/n_tty.c | put_tty_queue(c, tty); |
tty | 384 | drivers/char/n_tty.c | if (I_IGNCR(tty)) |
tty | 386 | drivers/char/n_tty.c | if (I_ICRNL(tty)) |
tty | 388 | drivers/char/n_tty.c | } else if (c == '\n' && I_INLCR(tty)) |
tty | 390 | drivers/char/n_tty.c | if (I_IXON(tty)) { |
tty | 391 | drivers/char/n_tty.c | if (c == START_CHAR(tty)) { |
tty | 392 | drivers/char/n_tty.c | start_tty(tty); |
tty | 395 | drivers/char/n_tty.c | if (c == STOP_CHAR(tty)) { |
tty | 396 | drivers/char/n_tty.c | stop_tty(tty); |
tty | 400 | drivers/char/n_tty.c | if (L_ISIG(tty)) { |
tty | 401 | drivers/char/n_tty.c | if (c == INTR_CHAR(tty)) { |
tty | 402 | drivers/char/n_tty.c | isig(SIGINT, tty); |
tty | 405 | drivers/char/n_tty.c | if (c == QUIT_CHAR(tty)) { |
tty | 406 | drivers/char/n_tty.c | isig(SIGQUIT, tty); |
tty | 409 | drivers/char/n_tty.c | if (c == SUSP_CHAR(tty)) { |
tty | 410 | drivers/char/n_tty.c | if (!is_orphaned_pgrp(tty->pgrp)) |
tty | 411 | drivers/char/n_tty.c | isig(SIGTSTP, tty); |
tty | 415 | drivers/char/n_tty.c | if (L_ICANON(tty)) { |
tty | 416 | drivers/char/n_tty.c | if (c == ERASE_CHAR(tty) || c == KILL_CHAR(tty) || |
tty | 417 | drivers/char/n_tty.c | (c == WERASE_CHAR(tty) && L_IEXTEN(tty))) { |
tty | 418 | drivers/char/n_tty.c | eraser(c, tty); |
tty | 421 | drivers/char/n_tty.c | if (c == LNEXT_CHAR(tty) && L_IEXTEN(tty)) { |
tty | 422 | drivers/char/n_tty.c | tty->lnext = 1; |
tty | 423 | drivers/char/n_tty.c | if (L_ECHO(tty)) { |
tty | 424 | drivers/char/n_tty.c | finish_erasing(tty); |
tty | 425 | drivers/char/n_tty.c | if (L_ECHOCTL(tty)) { |
tty | 426 | drivers/char/n_tty.c | put_char('^', tty); |
tty | 427 | drivers/char/n_tty.c | put_char('\b', tty); |
tty | 432 | drivers/char/n_tty.c | if (c == REPRINT_CHAR(tty) && L_ECHO(tty) && |
tty | 433 | drivers/char/n_tty.c | L_IEXTEN(tty)) { |
tty | 434 | drivers/char/n_tty.c | unsigned long tail = tty->canon_head; |
tty | 436 | drivers/char/n_tty.c | finish_erasing(tty); |
tty | 437 | drivers/char/n_tty.c | echo_char(c, tty); |
tty | 438 | drivers/char/n_tty.c | opost('\n', tty); |
tty | 439 | drivers/char/n_tty.c | while (tail != tty->read_head) { |
tty | 440 | drivers/char/n_tty.c | echo_char(tty->read_buf[tail], tty); |
tty | 446 | drivers/char/n_tty.c | if (L_ECHO(tty) || L_ECHONL(tty)) { |
tty | 447 | drivers/char/n_tty.c | if (tty->read_cnt >= N_TTY_BUF_SIZE-1) { |
tty | 448 | drivers/char/n_tty.c | put_char('\a', tty); |
tty | 451 | drivers/char/n_tty.c | opost('\n', tty); |
tty | 455 | drivers/char/n_tty.c | if (c == EOF_CHAR(tty)) { |
tty | 459 | drivers/char/n_tty.c | if ((c == EOL_CHAR(tty)) || |
tty | 460 | drivers/char/n_tty.c | (c == EOL2_CHAR(tty) && L_IEXTEN(tty))) { |
tty | 464 | drivers/char/n_tty.c | if (L_ECHO(tty)) { |
tty | 465 | drivers/char/n_tty.c | if (tty->read_cnt >= N_TTY_BUF_SIZE-1) { |
tty | 466 | drivers/char/n_tty.c | put_char('\a', tty); |
tty | 470 | drivers/char/n_tty.c | if (tty->canon_head == tty->read_head) |
tty | 471 | drivers/char/n_tty.c | tty->canon_column = tty->column; |
tty | 472 | drivers/char/n_tty.c | echo_char(c, tty); |
tty | 478 | drivers/char/n_tty.c | if (I_PARMRK(tty) && c == (unsigned char) '\377') |
tty | 479 | drivers/char/n_tty.c | put_tty_queue(c, tty); |
tty | 482 | drivers/char/n_tty.c | set_bit(tty->read_head, &tty->read_flags); |
tty | 483 | drivers/char/n_tty.c | put_tty_queue(c, tty); |
tty | 484 | drivers/char/n_tty.c | tty->canon_head = tty->read_head; |
tty | 485 | drivers/char/n_tty.c | tty->canon_data++; |
tty | 486 | drivers/char/n_tty.c | if (tty->fasync) |
tty | 487 | drivers/char/n_tty.c | kill_fasync(tty->fasync, SIGIO); |
tty | 488 | drivers/char/n_tty.c | if (tty->read_wait) |
tty | 489 | drivers/char/n_tty.c | wake_up_interruptible(&tty->read_wait); |
tty | 494 | drivers/char/n_tty.c | finish_erasing(tty); |
tty | 495 | drivers/char/n_tty.c | if (L_ECHO(tty)) { |
tty | 496 | drivers/char/n_tty.c | if (tty->read_cnt >= N_TTY_BUF_SIZE-1) { |
tty | 497 | drivers/char/n_tty.c | put_char('\a', tty); /* beep if no space */ |
tty | 501 | drivers/char/n_tty.c | opost('\n', tty); |
tty | 504 | drivers/char/n_tty.c | if (tty->canon_head == tty->read_head) |
tty | 505 | drivers/char/n_tty.c | tty->canon_column = tty->column; |
tty | 506 | drivers/char/n_tty.c | echo_char(c, tty); |
tty | 510 | drivers/char/n_tty.c | if (I_PARMRK(tty) && c == (unsigned char) '\377') |
tty | 511 | drivers/char/n_tty.c | put_tty_queue(c, tty); |
tty | 513 | drivers/char/n_tty.c | put_tty_queue(c, tty); |
tty | 516 | drivers/char/n_tty.c | static void n_tty_receive_buf(struct tty_struct *tty, unsigned char *cp, |
tty | 523 | drivers/char/n_tty.c | if (!tty->read_buf) |
tty | 526 | drivers/char/n_tty.c | if (tty->real_raw) { |
tty | 527 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
tty | 528 | drivers/char/n_tty.c | N_TTY_BUF_SIZE - tty->read_head)); |
tty | 529 | drivers/char/n_tty.c | memcpy(tty->read_buf + tty->read_head, cp, i); |
tty | 530 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); |
tty | 531 | drivers/char/n_tty.c | tty->read_cnt += i; |
tty | 535 | drivers/char/n_tty.c | i = MIN(count, MIN(N_TTY_BUF_SIZE - tty->read_cnt, |
tty | 536 | drivers/char/n_tty.c | N_TTY_BUF_SIZE - tty->read_head)); |
tty | 537 | drivers/char/n_tty.c | memcpy(tty->read_buf + tty->read_head, cp, i); |
tty | 538 | drivers/char/n_tty.c | tty->read_head = (tty->read_head + i) & (N_TTY_BUF_SIZE-1); |
tty | 539 | drivers/char/n_tty.c | tty->read_cnt += i; |
tty | 546 | drivers/char/n_tty.c | n_tty_receive_char(tty, *p); |
tty | 549 | drivers/char/n_tty.c | n_tty_receive_break(tty); |
tty | 553 | drivers/char/n_tty.c | n_tty_receive_parity_error(tty, *p); |
tty | 556 | drivers/char/n_tty.c | n_tty_receive_overrun(tty); |
tty | 559 | drivers/char/n_tty.c | printk("%s: unknown flag %d\n", tty_name(tty), |
tty | 564 | drivers/char/n_tty.c | if (tty->driver.flush_chars) |
tty | 565 | drivers/char/n_tty.c | tty->driver.flush_chars(tty); |
tty | 568 | drivers/char/n_tty.c | if (!tty->icanon && (tty->read_cnt >= tty->minimum_to_wake)) { |
tty | 569 | drivers/char/n_tty.c | if (tty->fasync) |
tty | 570 | drivers/char/n_tty.c | kill_fasync(tty->fasync, SIGIO); |
tty | 571 | drivers/char/n_tty.c | if (tty->read_wait) |
tty | 572 | drivers/char/n_tty.c | wake_up_interruptible(&tty->read_wait); |
tty | 575 | drivers/char/n_tty.c | if ((tty->read_cnt >= TTY_THRESHOLD_THROTTLE) && |
tty | 576 | drivers/char/n_tty.c | tty->driver.throttle && |
tty | 577 | drivers/char/n_tty.c | !set_bit(TTY_THROTTLED, &tty->flags)) |
tty | 578 | drivers/char/n_tty.c | tty->driver.throttle(tty); |
tty | 581 | drivers/char/n_tty.c | static int n_tty_receive_room(struct tty_struct *tty) |
tty | 583 | drivers/char/n_tty.c | int left = N_TTY_BUF_SIZE - tty->read_cnt - 1; |
tty | 596 | drivers/char/n_tty.c | static void n_tty_set_termios(struct tty_struct *tty, struct termios * old) |
tty | 598 | drivers/char/n_tty.c | if (!tty) |
tty | 601 | drivers/char/n_tty.c | tty->icanon = (L_ICANON(tty) != 0); |
tty | 602 | drivers/char/n_tty.c | if (I_ISTRIP(tty) || I_IUCLC(tty) || I_IGNCR(tty) || |
tty | 603 | drivers/char/n_tty.c | I_ICRNL(tty) || I_INLCR(tty) || L_ICANON(tty) || |
tty | 604 | drivers/char/n_tty.c | I_IXON(tty) || L_ISIG(tty) || L_ECHO(tty) || |
tty | 605 | drivers/char/n_tty.c | I_PARMRK(tty)) { |
tty | 607 | drivers/char/n_tty.c | memset(tty->process_char_map, 0, 256/32); |
tty | 609 | drivers/char/n_tty.c | if (I_IGNCR(tty) || I_ICRNL(tty)) |
tty | 610 | drivers/char/n_tty.c | set_bit('\r', &tty->process_char_map); |
tty | 611 | drivers/char/n_tty.c | if (I_INLCR(tty)) |
tty | 612 | drivers/char/n_tty.c | set_bit('\n', &tty->process_char_map); |
tty | 614 | drivers/char/n_tty.c | if (L_ICANON(tty)) { |
tty | 615 | drivers/char/n_tty.c | set_bit(ERASE_CHAR(tty), &tty->process_char_map); |
tty | 616 | drivers/char/n_tty.c | set_bit(KILL_CHAR(tty), &tty->process_char_map); |
tty | 617 | drivers/char/n_tty.c | set_bit(EOF_CHAR(tty), &tty->process_char_map); |
tty | 618 | drivers/char/n_tty.c | set_bit('\n', &tty->process_char_map); |
tty | 619 | drivers/char/n_tty.c | set_bit(EOL_CHAR(tty), &tty->process_char_map); |
tty | 620 | drivers/char/n_tty.c | if (L_IEXTEN(tty)) { |
tty | 621 | drivers/char/n_tty.c | set_bit(WERASE_CHAR(tty), |
tty | 622 | drivers/char/n_tty.c | &tty->process_char_map); |
tty | 623 | drivers/char/n_tty.c | set_bit(LNEXT_CHAR(tty), |
tty | 624 | drivers/char/n_tty.c | &tty->process_char_map); |
tty | 625 | drivers/char/n_tty.c | set_bit(EOL2_CHAR(tty), |
tty | 626 | drivers/char/n_tty.c | &tty->process_char_map); |
tty | 627 | drivers/char/n_tty.c | if (L_ECHO(tty)) |
tty | 628 | drivers/char/n_tty.c | set_bit(REPRINT_CHAR(tty), |
tty | 629 | drivers/char/n_tty.c | &tty->process_char_map); |
tty | 632 | drivers/char/n_tty.c | if (I_IXON(tty)) { |
tty | 633 | drivers/char/n_tty.c | set_bit(START_CHAR(tty), &tty->process_char_map); |
tty | 634 | drivers/char/n_tty.c | set_bit(STOP_CHAR(tty), &tty->process_char_map); |
tty | 636 | drivers/char/n_tty.c | if (L_ISIG(tty)) { |
tty | 637 | drivers/char/n_tty.c | set_bit(INTR_CHAR(tty), &tty->process_char_map); |
tty | 638 | drivers/char/n_tty.c | set_bit(QUIT_CHAR(tty), &tty->process_char_map); |
tty | 639 | drivers/char/n_tty.c | set_bit(SUSP_CHAR(tty), &tty->process_char_map); |
tty | 641 | drivers/char/n_tty.c | clear_bit(__DISABLED_CHAR, &tty->process_char_map); |
tty | 643 | drivers/char/n_tty.c | tty->raw = 0; |
tty | 644 | drivers/char/n_tty.c | tty->real_raw = 0; |
tty | 646 | drivers/char/n_tty.c | tty->raw = 1; |
tty | 647 | drivers/char/n_tty.c | if ((I_IGNBRK(tty) || (!I_BRKINT(tty) && !I_PARMRK(tty))) && |
tty | 648 | drivers/char/n_tty.c | (I_IGNPAR(tty) || !I_INPCK(tty)) && |
tty | 649 | drivers/char/n_tty.c | (tty->driver.flags & TTY_DRIVER_REAL_RAW)) |
tty | 650 | drivers/char/n_tty.c | tty->real_raw = 1; |
tty | 652 | drivers/char/n_tty.c | tty->real_raw = 0; |
tty | 656 | drivers/char/n_tty.c | static void n_tty_close(struct tty_struct *tty) |
tty | 658 | drivers/char/n_tty.c | wait_until_sent(tty, 0); |
tty | 659 | drivers/char/n_tty.c | n_tty_flush_buffer(tty); |
tty | 660 | drivers/char/n_tty.c | if (tty->read_buf) { |
tty | 661 | drivers/char/n_tty.c | free_page((unsigned long) tty->read_buf); |
tty | 662 | drivers/char/n_tty.c | tty->read_buf = 0; |
tty | 666 | drivers/char/n_tty.c | static int n_tty_open(struct tty_struct *tty) |
tty | 668 | drivers/char/n_tty.c | if (!tty) |
tty | 671 | drivers/char/n_tty.c | if (!tty->read_buf) { |
tty | 672 | drivers/char/n_tty.c | tty->read_buf = (unsigned char *) |
tty | 674 | drivers/char/n_tty.c | if (!tty->read_buf) |
tty | 677 | drivers/char/n_tty.c | memset(tty->read_buf, 0, N_TTY_BUF_SIZE); |
tty | 678 | drivers/char/n_tty.c | tty->read_head = tty->read_tail = tty->read_cnt = 0; |
tty | 679 | drivers/char/n_tty.c | memset(tty->read_flags, 0, sizeof(tty->read_flags)); |
tty | 680 | drivers/char/n_tty.c | n_tty_set_termios(tty, 0); |
tty | 681 | drivers/char/n_tty.c | tty->minimum_to_wake = 1; |
tty | 685 | drivers/char/n_tty.c | static inline int input_available_p(struct tty_struct *tty, int amt) |
tty | 687 | drivers/char/n_tty.c | if (L_ICANON(tty)) { |
tty | 688 | drivers/char/n_tty.c | if (tty->canon_data) |
tty | 690 | drivers/char/n_tty.c | } else if (tty->read_cnt >= (amt ? amt : 1)) |
tty | 704 | drivers/char/n_tty.c | static inline void copy_from_read_buf(struct tty_struct *tty, |
tty | 711 | drivers/char/n_tty.c | n = MIN(*nr, MIN(tty->read_cnt, N_TTY_BUF_SIZE - tty->read_tail)); |
tty | 714 | drivers/char/n_tty.c | memcpy_tofs(*b, &tty->read_buf[tty->read_tail], n); |
tty | 715 | drivers/char/n_tty.c | tty->read_tail = (tty->read_tail + n) & (N_TTY_BUF_SIZE-1); |
tty | 716 | drivers/char/n_tty.c | tty->read_cnt -= n; |
tty | 727 | drivers/char/n_tty.c | static inline void gobble_eof(struct tty_struct *tty) |
tty | 730 | drivers/char/n_tty.c | if ((tty->read_cnt) && |
tty | 731 | drivers/char/n_tty.c | (tty->read_buf[tty->read_tail] == __DISABLED_CHAR) && |
tty | 732 | drivers/char/n_tty.c | clear_bit(tty->read_tail, &tty->read_flags)) { |
tty | 733 | drivers/char/n_tty.c | tty->read_tail = (tty->read_tail+1) & (N_TTY_BUF_SIZE-1); |
tty | 734 | drivers/char/n_tty.c | tty->read_cnt--; |
tty | 739 | drivers/char/n_tty.c | static int read_chan(struct tty_struct *tty, struct file *file, |
tty | 748 | drivers/char/n_tty.c | if (!tty->read_buf) { |
tty | 759 | drivers/char/n_tty.c | current->tty == tty) { |
tty | 760 | drivers/char/n_tty.c | if (tty->pgrp <= 0) |
tty | 762 | drivers/char/n_tty.c | else if (current->pgrp != tty->pgrp) { |
tty | 771 | drivers/char/n_tty.c | if (L_ICANON(tty)) { |
tty | 775 | drivers/char/n_tty.c | time = (HZ / 10) * TIME_CHAR(tty); |
tty | 776 | drivers/char/n_tty.c | minimum = MIN_CHAR(tty); |
tty | 780 | drivers/char/n_tty.c | tty->minimum_to_wake = 1; |
tty | 781 | drivers/char/n_tty.c | else if (!tty->read_wait || |
tty | 782 | drivers/char/n_tty.c | (tty->minimum_to_wake > minimum)) |
tty | 783 | drivers/char/n_tty.c | tty->minimum_to_wake = minimum; |
tty | 790 | drivers/char/n_tty.c | tty->minimum_to_wake = minimum = 1; |
tty | 794 | drivers/char/n_tty.c | add_wait_queue(&tty->read_wait, &wait); |
tty | 797 | drivers/char/n_tty.c | if (tty->packet && tty->link->ctrl_status) { |
tty | 800 | drivers/char/n_tty.c | put_fs_byte(tty->link->ctrl_status, b++); |
tty | 801 | drivers/char/n_tty.c | tty->link->ctrl_status = 0; |
tty | 809 | drivers/char/n_tty.c | if (((minimum - (b - buf)) < tty->minimum_to_wake) && |
tty | 811 | drivers/char/n_tty.c | tty->minimum_to_wake = (minimum - (b - buf)); |
tty | 813 | drivers/char/n_tty.c | if (!input_available_p(tty, 0)) { |
tty | 814 | drivers/char/n_tty.c | if (tty->flags & (1 << TTY_SLAVE_CLOSED)) { |
tty | 836 | drivers/char/n_tty.c | if (tty->packet && b == buf) { |
tty | 841 | drivers/char/n_tty.c | if (L_ICANON(tty)) { |
tty | 846 | drivers/char/n_tty.c | if (!tty->read_cnt) { |
tty | 850 | drivers/char/n_tty.c | eol = clear_bit(tty->read_tail, |
tty | 851 | drivers/char/n_tty.c | &tty->read_flags); |
tty | 852 | drivers/char/n_tty.c | c = tty->read_buf[tty->read_tail]; |
tty | 853 | drivers/char/n_tty.c | tty->read_tail = ((tty->read_tail+1) & |
tty | 855 | drivers/char/n_tty.c | tty->read_cnt--; |
tty | 861 | drivers/char/n_tty.c | gobble_eof(tty); |
tty | 864 | drivers/char/n_tty.c | if (--tty->canon_data < 0) { |
tty | 865 | drivers/char/n_tty.c | tty->canon_data = 0; |
tty | 875 | drivers/char/n_tty.c | copy_from_read_buf(tty, &b, &nr); |
tty | 876 | drivers/char/n_tty.c | copy_from_read_buf(tty, &b, &nr); |
tty | 882 | drivers/char/n_tty.c | if (tty->driver.unthrottle && |
tty | 883 | drivers/char/n_tty.c | (tty->read_cnt <= TTY_THRESHOLD_UNTHROTTLE) |
tty | 884 | drivers/char/n_tty.c | && clear_bit(TTY_THROTTLED, &tty->flags)) |
tty | 885 | drivers/char/n_tty.c | tty->driver.unthrottle(tty); |
tty | 892 | drivers/char/n_tty.c | remove_wait_queue(&tty->read_wait, &wait); |
tty | 894 | drivers/char/n_tty.c | if (!tty->read_wait) |
tty | 895 | drivers/char/n_tty.c | tty->minimum_to_wake = minimum; |
tty | 902 | drivers/char/n_tty.c | static int write_chan(struct tty_struct * tty, struct file * file, |
tty | 911 | drivers/char/n_tty.c | if (L_TOSTOP(tty) && file->f_inode->i_rdev != CONSOLE_DEV) { |
tty | 912 | drivers/char/n_tty.c | retval = tty_check_change(tty); |
tty | 917 | drivers/char/n_tty.c | add_wait_queue(&tty->write_wait, &wait); |
tty | 924 | drivers/char/n_tty.c | if (tty_hung_up_p(file) || (tty->link && !tty->link->count)) { |
tty | 928 | drivers/char/n_tty.c | if (O_OPOST(tty)) { |
tty | 931 | drivers/char/n_tty.c | if (opost(c, tty) < 0) |
tty | 935 | drivers/char/n_tty.c | if (tty->driver.flush_chars) |
tty | 936 | drivers/char/n_tty.c | tty->driver.flush_chars(tty); |
tty | 938 | drivers/char/n_tty.c | c = tty->driver.write(tty, 1, b, nr); |
tty | 951 | drivers/char/n_tty.c | remove_wait_queue(&tty->write_wait, &wait); |
tty | 955 | drivers/char/n_tty.c | static int normal_select(struct tty_struct * tty, struct inode * inode, |
tty | 960 | drivers/char/n_tty.c | if (input_available_p(tty, TIME_CHAR(tty) ? 0 : |
tty | 961 | drivers/char/n_tty.c | MIN_CHAR(tty))) |
tty | 965 | drivers/char/n_tty.c | if (tty->packet && tty->link->ctrl_status) |
tty | 967 | drivers/char/n_tty.c | if (tty->flags & (1 << TTY_SLAVE_CLOSED)) |
tty | 971 | drivers/char/n_tty.c | if (!tty->read_wait) { |
tty | 972 | drivers/char/n_tty.c | if (MIN_CHAR(tty) && !TIME_CHAR(tty)) |
tty | 973 | drivers/char/n_tty.c | tty->minimum_to_wake = MIN_CHAR(tty); |
tty | 975 | drivers/char/n_tty.c | tty->minimum_to_wake = 1; |
tty | 977 | drivers/char/n_tty.c | select_wait(&tty->read_wait, wait); |
tty | 980 | drivers/char/n_tty.c | if (tty->driver.chars_in_buffer(tty) < WAKEUP_CHARS) |
tty | 982 | drivers/char/n_tty.c | select_wait(&tty->write_wait, wait); |
tty | 63 | drivers/char/pty.c | static void pty_close(struct tty_struct * tty, struct file * filp) |
tty | 65 | drivers/char/pty.c | if (!tty) |
tty | 67 | drivers/char/pty.c | if (tty->driver.subtype == PTY_TYPE_MASTER) { |
tty | 68 | drivers/char/pty.c | if (tty->count > 1) |
tty | 69 | drivers/char/pty.c | printk("master pty_close: count = %d!!\n", tty->count); |
tty | 71 | drivers/char/pty.c | if (tty->count > 2) |
tty | 74 | drivers/char/pty.c | wake_up_interruptible(&tty->read_wait); |
tty | 75 | drivers/char/pty.c | wake_up_interruptible(&tty->write_wait); |
tty | 76 | drivers/char/pty.c | if (!tty->link) |
tty | 78 | drivers/char/pty.c | wake_up_interruptible(&tty->link->read_wait); |
tty | 79 | drivers/char/pty.c | wake_up_interruptible(&tty->link->write_wait); |
tty | 80 | drivers/char/pty.c | if (tty->driver.subtype == PTY_TYPE_MASTER) |
tty | 81 | drivers/char/pty.c | tty_hangup(tty->link); |
tty | 83 | drivers/char/pty.c | start_tty(tty); |
tty | 84 | drivers/char/pty.c | set_bit(TTY_SLAVE_CLOSED, &tty->link->flags); |
tty | 98 | drivers/char/pty.c | static void pty_unthrottle(struct tty_struct * tty) |
tty | 100 | drivers/char/pty.c | struct tty_struct *o_tty = tty->link; |
tty | 109 | drivers/char/pty.c | set_bit(TTY_THROTTLED, &tty->flags); |
tty | 112 | drivers/char/pty.c | static int pty_write(struct tty_struct * tty, int from_user, |
tty | 115 | drivers/char/pty.c | struct tty_struct *to = tty->link; |
tty | 119 | drivers/char/pty.c | if (!to || tty->stopped) |
tty | 125 | drivers/char/pty.c | ((tty->driver.subtype-1) * PTY_BUF_SIZE); |
tty | 146 | drivers/char/pty.c | static int pty_write_room(struct tty_struct *tty) |
tty | 148 | drivers/char/pty.c | struct tty_struct *to = tty->link; |
tty | 150 | drivers/char/pty.c | if (!to || tty->stopped) |
tty | 156 | drivers/char/pty.c | static int pty_chars_in_buffer(struct tty_struct *tty) |
tty | 158 | drivers/char/pty.c | struct tty_struct *to = tty->link; |
tty | 166 | drivers/char/pty.c | static void pty_flush_buffer(struct tty_struct *tty) |
tty | 168 | drivers/char/pty.c | struct tty_struct *to = tty->link; |
tty | 177 | drivers/char/pty.c | tty->ctrl_status |= TIOCPKT_FLUSHWRITE; |
tty | 182 | drivers/char/pty.c | int pty_open(struct tty_struct *tty, struct file * filp) |
tty | 187 | drivers/char/pty.c | if (!tty || !tty->link) |
tty | 189 | drivers/char/pty.c | line = MINOR(tty->device) - tty->driver.minor_start; |
tty | 193 | drivers/char/pty.c | tty->driver_data = pty; |
tty | 201 | drivers/char/pty.c | if (tty->driver.subtype == PTY_TYPE_SLAVE) |
tty | 202 | drivers/char/pty.c | clear_bit(TTY_SLAVE_CLOSED, &tty->link->flags); |
tty | 204 | drivers/char/pty.c | set_bit(TTY_THROTTLED, &tty->flags); |
tty | 207 | drivers/char/pty.c | while (!tty->link->count && !(current->signal & ~current->blocked)) |
tty | 209 | drivers/char/pty.c | if (!tty->link->count) |
tty | 291 | drivers/char/serial.c | static void rs_stop(struct tty_struct *tty) |
tty | 293 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 296 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_stop")) |
tty | 307 | drivers/char/serial.c | static void rs_start(struct tty_struct *tty) |
tty | 309 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 312 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_start")) |
tty | 371 | drivers/char/serial.c | struct tty_struct *tty = info->tty; |
tty | 378 | drivers/char/serial.c | if (tty->flip.count >= TTY_FLIPBUF_SIZE) |
tty | 380 | drivers/char/serial.c | tty->flip.count++; |
tty | 383 | drivers/char/serial.c | *tty->flip.flag_buf_ptr++ = TTY_BREAK; |
tty | 385 | drivers/char/serial.c | do_SAK(tty); |
tty | 387 | drivers/char/serial.c | *tty->flip.flag_buf_ptr++ = TTY_PARITY; |
tty | 389 | drivers/char/serial.c | *tty->flip.flag_buf_ptr++ = TTY_FRAME; |
tty | 391 | drivers/char/serial.c | *tty->flip.flag_buf_ptr++ = TTY_OVERRUN; |
tty | 393 | drivers/char/serial.c | *tty->flip.flag_buf_ptr++ = 0; |
tty | 395 | drivers/char/serial.c | *tty->flip.flag_buf_ptr++ = 0; |
tty | 396 | drivers/char/serial.c | *tty->flip.char_buf_ptr++ = ch; |
tty | 398 | drivers/char/serial.c | queue_task_irq_off(&tty->flip.tqueue, &tq_timer); |
tty | 415 | drivers/char/serial.c | if ((info->xmit_cnt <= 0) || info->tty->stopped || |
tty | 416 | drivers/char/serial.c | info->tty->hw_stopped) { |
tty | 471 | drivers/char/serial.c | if (info->tty->hw_stopped) { |
tty | 476 | drivers/char/serial.c | info->tty->hw_stopped = 0; |
tty | 489 | drivers/char/serial.c | info->tty->hw_stopped = 1; |
tty | 519 | drivers/char/serial.c | if (!info->tty || |
tty | 565 | drivers/char/serial.c | if (!info || !info->tty) |
tty | 606 | drivers/char/serial.c | if (!info->tty) |
tty | 658 | drivers/char/serial.c | if (!info || !info->tty) |
tty | 700 | drivers/char/serial.c | struct tty_struct *tty; |
tty | 702 | drivers/char/serial.c | tty = info->tty; |
tty | 703 | drivers/char/serial.c | if (!tty) |
tty | 707 | drivers/char/serial.c | tty_hangup(tty); |
tty | 713 | drivers/char/serial.c | if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && |
tty | 714 | drivers/char/serial.c | tty->ldisc.write_wakeup) |
tty | 715 | drivers/char/serial.c | (tty->ldisc.write_wakeup)(tty); |
tty | 716 | drivers/char/serial.c | wake_up_interruptible(&tty->write_wait); |
tty | 842 | drivers/char/serial.c | if (info->tty) |
tty | 843 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
tty | 878 | drivers/char/serial.c | if (info->tty) |
tty | 879 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
tty | 900 | drivers/char/serial.c | if (info->tty) |
tty | 902 | drivers/char/serial.c | &info->tty->flags); |
tty | 953 | drivers/char/serial.c | if (info->tty) |
tty | 954 | drivers/char/serial.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
tty | 1060 | drivers/char/serial.c | if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) { |
tty | 1071 | drivers/char/serial.c | if (info->tty) |
tty | 1072 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
tty | 1089 | drivers/char/serial.c | if (!info->tty || !info->tty->termios) |
tty | 1091 | drivers/char/serial.c | cflag = info->tty->termios->c_cflag; |
tty | 1159 | drivers/char/serial.c | if (I_INPCK(info->tty)) |
tty | 1161 | drivers/char/serial.c | if (I_BRKINT(info->tty) || I_PARMRK(info->tty)) |
tty | 1165 | drivers/char/serial.c | if (I_IGNPAR(info->tty)) |
tty | 1167 | drivers/char/serial.c | if (I_IGNBRK(info->tty)) { |
tty | 1173 | drivers/char/serial.c | if (I_IGNPAR(info->tty)) |
tty | 1186 | drivers/char/serial.c | static void rs_put_char(struct tty_struct *tty, unsigned char ch) |
tty | 1188 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 1191 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_put_char")) |
tty | 1194 | drivers/char/serial.c | if (!tty || !info->xmit_buf) |
tty | 1209 | drivers/char/serial.c | static void rs_flush_chars(struct tty_struct *tty) |
tty | 1211 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 1214 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_flush_chars")) |
tty | 1217 | drivers/char/serial.c | if (info->xmit_cnt <= 0 || tty->stopped || tty->hw_stopped || |
tty | 1227 | drivers/char/serial.c | static int rs_write(struct tty_struct * tty, int from_user, |
tty | 1231 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 1234 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_write")) |
tty | 1237 | drivers/char/serial.c | if (!tty || !info->xmit_buf || !tmp_buf) |
tty | 1264 | drivers/char/serial.c | if (info->xmit_cnt && !tty->stopped && !tty->hw_stopped && |
tty | 1273 | drivers/char/serial.c | static int rs_write_room(struct tty_struct *tty) |
tty | 1275 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 1278 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_write_room")) |
tty | 1286 | drivers/char/serial.c | static int rs_chars_in_buffer(struct tty_struct *tty) |
tty | 1288 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 1290 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_chars_in_buffer")) |
tty | 1295 | drivers/char/serial.c | static void rs_flush_buffer(struct tty_struct *tty) |
tty | 1297 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 1299 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_flush_buffer")) |
tty | 1304 | drivers/char/serial.c | wake_up_interruptible(&tty->write_wait); |
tty | 1305 | drivers/char/serial.c | if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && |
tty | 1306 | drivers/char/serial.c | tty->ldisc.write_wakeup) |
tty | 1307 | drivers/char/serial.c | (tty->ldisc.write_wakeup)(tty); |
tty | 1318 | drivers/char/serial.c | static void rs_throttle(struct tty_struct * tty) |
tty | 1320 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 1324 | drivers/char/serial.c | printk("throttle %s: %d....\n", _tty_name(tty, buf), |
tty | 1325 | drivers/char/serial.c | tty->ldisc.chars_in_buffer(tty)); |
tty | 1328 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_throttle")) |
tty | 1331 | drivers/char/serial.c | if (I_IXOFF(tty)) |
tty | 1332 | drivers/char/serial.c | info->x_char = STOP_CHAR(tty); |
tty | 1341 | drivers/char/serial.c | static void rs_unthrottle(struct tty_struct * tty) |
tty | 1343 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 1347 | drivers/char/serial.c | printk("unthrottle %s: %d....\n", _tty_name(tty, buf), |
tty | 1348 | drivers/char/serial.c | tty->ldisc.chars_in_buffer(tty)); |
tty | 1351 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_unthrottle")) |
tty | 1354 | drivers/char/serial.c | if (I_IXOFF(tty)) { |
tty | 1358 | drivers/char/serial.c | info->x_char = START_CHAR(tty); |
tty | 1626 | drivers/char/serial.c | static int rs_ioctl(struct tty_struct *tty, struct file * file, |
tty | 1630 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
tty | 1633 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_ioctl")) |
tty | 1638 | drivers/char/serial.c | retval = tty_check_change(tty); |
tty | 1641 | drivers/char/serial.c | wait_until_sent(tty, 0); |
tty | 1646 | drivers/char/serial.c | retval = tty_check_change(tty); |
tty | 1649 | drivers/char/serial.c | wait_until_sent(tty, 0); |
tty | 1656 | drivers/char/serial.c | put_fs_long(C_CLOCAL(tty) ? 1 : 0, |
tty | 1661 | drivers/char/serial.c | tty->termios->c_cflag = |
tty | 1662 | drivers/char/serial.c | ((tty->termios->c_cflag & ~CLOCAL) | |
tty | 1719 | drivers/char/serial.c | static void rs_set_termios(struct tty_struct *tty, struct termios *old_termios) |
tty | 1721 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
tty | 1723 | drivers/char/serial.c | if (tty->termios->c_cflag == old_termios->c_cflag) |
tty | 1729 | drivers/char/serial.c | !(tty->termios->c_cflag & CRTSCTS)) { |
tty | 1730 | drivers/char/serial.c | tty->hw_stopped = 0; |
tty | 1731 | drivers/char/serial.c | rs_start(tty); |
tty | 1735 | drivers/char/serial.c | (tty->termios->c_cflag & CLOCAL)) |
tty | 1749 | drivers/char/serial.c | static void rs_close(struct tty_struct *tty, struct file * filp) |
tty | 1751 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
tty | 1753 | drivers/char/serial.c | if (!info || serial_paranoia_check(info, tty->device, "rs_close")) |
tty | 1762 | drivers/char/serial.c | if ((tty->count == 1) && (info->count != 1)) { |
tty | 1787 | drivers/char/serial.c | info->normal_termios = *tty->termios; |
tty | 1789 | drivers/char/serial.c | info->callout_termios = *tty->termios; |
tty | 1791 | drivers/char/serial.c | wait_until_sent(tty, 3000); /* 30 seconds timeout */ |
tty | 1793 | drivers/char/serial.c | if (tty->driver.flush_buffer) |
tty | 1794 | drivers/char/serial.c | tty->driver.flush_buffer(tty); |
tty | 1795 | drivers/char/serial.c | if (tty->ldisc.flush_buffer) |
tty | 1796 | drivers/char/serial.c | tty->ldisc.flush_buffer(tty); |
tty | 1798 | drivers/char/serial.c | info->tty = 0; |
tty | 1799 | drivers/char/serial.c | if (tty->ldisc.num != ldiscs[N_TTY].num) { |
tty | 1800 | drivers/char/serial.c | if (tty->ldisc.close) |
tty | 1801 | drivers/char/serial.c | (tty->ldisc.close)(tty); |
tty | 1802 | drivers/char/serial.c | tty->ldisc = ldiscs[N_TTY]; |
tty | 1803 | drivers/char/serial.c | tty->termios->c_line = N_TTY; |
tty | 1804 | drivers/char/serial.c | if (tty->ldisc.open) |
tty | 1805 | drivers/char/serial.c | (tty->ldisc.open)(tty); |
tty | 1823 | drivers/char/serial.c | void rs_hangup(struct tty_struct *tty) |
tty | 1825 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
tty | 1827 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_hangup")) |
tty | 1834 | drivers/char/serial.c | info->tty = 0; |
tty | 1843 | drivers/char/serial.c | static int block_til_ready(struct tty_struct *tty, struct file * filp, |
tty | 1848 | drivers/char/serial.c | int do_clocal = C_CLOCAL(tty); |
tty | 1870 | drivers/char/serial.c | if (tty->driver.subtype == SERIAL_TYPE_CALLOUT) { |
tty | 1967 | drivers/char/serial.c | int rs_open(struct tty_struct *tty, struct file * filp) |
tty | 1972 | drivers/char/serial.c | line = MINOR(tty->device) - tty->driver.minor_start; |
tty | 1976 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_open")) |
tty | 1980 | drivers/char/serial.c | printk("rs_open %s%d, count = %d\n", tty->driver.name, info->line, |
tty | 1984 | drivers/char/serial.c | tty->driver_data = info; |
tty | 1985 | drivers/char/serial.c | info->tty = tty; |
tty | 1994 | drivers/char/serial.c | if (tty->driver.subtype == SERIAL_TYPE_NORMAL) |
tty | 1995 | drivers/char/serial.c | *tty->termios = info->normal_termios; |
tty | 1997 | drivers/char/serial.c | *tty->termios = info->callout_termios; |
tty | 2006 | drivers/char/serial.c | retval = block_til_ready(tty, filp, info); |
tty | 2328 | drivers/char/serial.c | info->tty = 0; |
tty | 2441 | drivers/char/serial.c | if (info->tty) |
tty | 2442 | drivers/char/serial.c | tty_hangup(info->tty); |
tty | 69 | drivers/char/tty_io.c | extern int set_selection(const int arg, struct tty_struct *tty); |
tty | 70 | drivers/char/tty_io.c | extern int paste_selection(struct tty_struct *tty); |
tty | 90 | drivers/char/tty_io.c | static void initialize_tty_struct(struct tty_struct *tty); |
tty | 110 | drivers/char/tty_io.c | char *_tty_name(struct tty_struct *tty, char *buf) |
tty | 112 | drivers/char/tty_io.c | sprintf(buf, "%s%d", tty->driver.name, |
tty | 113 | drivers/char/tty_io.c | MINOR(tty->device) - tty->driver.minor_start + |
tty | 114 | drivers/char/tty_io.c | tty->driver.name_base); |
tty | 118 | drivers/char/tty_io.c | char *tty_name(struct tty_struct *tty) |
tty | 122 | drivers/char/tty_io.c | return(_tty_name(tty, buf)); |
tty | 127 | drivers/char/tty_io.c | inline int tty_paranoia_check(struct tty_struct *tty, dev_t device, |
tty | 136 | drivers/char/tty_io.c | if (!tty) { |
tty | 140 | drivers/char/tty_io.c | if (tty->magic != TTY_MAGIC) { |
tty | 164 | drivers/char/tty_io.c | static int tty_set_ldisc(struct tty_struct *tty, int ldisc) |
tty | 173 | drivers/char/tty_io.c | if (tty->ldisc.num == ldisc) |
tty | 175 | drivers/char/tty_io.c | o_ldisc = tty->ldisc; |
tty | 178 | drivers/char/tty_io.c | if (tty->ldisc.close) |
tty | 179 | drivers/char/tty_io.c | (tty->ldisc.close)(tty); |
tty | 182 | drivers/char/tty_io.c | tty->ldisc = ldiscs[ldisc]; |
tty | 183 | drivers/char/tty_io.c | tty->termios->c_line = ldisc; |
tty | 184 | drivers/char/tty_io.c | if (tty->ldisc.open) |
tty | 185 | drivers/char/tty_io.c | retval = (tty->ldisc.open)(tty); |
tty | 187 | drivers/char/tty_io.c | tty->ldisc = o_ldisc; |
tty | 188 | drivers/char/tty_io.c | tty->termios->c_line = tty->ldisc.num; |
tty | 189 | drivers/char/tty_io.c | if (tty->ldisc.open && (tty->ldisc.open(tty) < 0)) { |
tty | 190 | drivers/char/tty_io.c | tty->ldisc = ldiscs[N_TTY]; |
tty | 191 | drivers/char/tty_io.c | tty->termios->c_line = N_TTY; |
tty | 192 | drivers/char/tty_io.c | if (tty->ldisc.open) { |
tty | 193 | drivers/char/tty_io.c | int r = tty->ldisc.open(tty); |
tty | 198 | drivers/char/tty_io.c | tty_name(tty), r); |
tty | 202 | drivers/char/tty_io.c | if (tty->ldisc.num != o_ldisc.num && tty->driver.set_ldisc) |
tty | 203 | drivers/char/tty_io.c | tty->driver.set_ldisc(tty); |
tty | 235 | drivers/char/tty_io.c | int tty_check_change(struct tty_struct * tty) |
tty | 237 | drivers/char/tty_io.c | if (current->tty != tty) |
tty | 239 | drivers/char/tty_io.c | if (tty->pgrp <= 0) { |
tty | 243 | drivers/char/tty_io.c | if (current->pgrp == tty->pgrp) |
tty | 307 | drivers/char/tty_io.c | void do_tty_hangup(struct tty_struct * tty, struct file_operations *fops) |
tty | 313 | drivers/char/tty_io.c | if (!tty) |
tty | 318 | drivers/char/tty_io.c | if (filp->private_data != tty) |
tty | 328 | drivers/char/tty_io.c | if (tty->ldisc.flush_buffer) |
tty | 329 | drivers/char/tty_io.c | tty->ldisc.flush_buffer(tty); |
tty | 330 | drivers/char/tty_io.c | if (tty->driver.flush_buffer) |
tty | 331 | drivers/char/tty_io.c | tty->driver.flush_buffer(tty); |
tty | 332 | drivers/char/tty_io.c | if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && |
tty | 333 | drivers/char/tty_io.c | tty->ldisc.write_wakeup) |
tty | 334 | drivers/char/tty_io.c | (tty->ldisc.write_wakeup)(tty); |
tty | 335 | drivers/char/tty_io.c | wake_up_interruptible(&tty->write_wait); |
tty | 336 | drivers/char/tty_io.c | wake_up_interruptible(&tty->read_wait); |
tty | 342 | drivers/char/tty_io.c | if (tty->ldisc.num != ldiscs[N_TTY].num) { |
tty | 343 | drivers/char/tty_io.c | if (tty->ldisc.close) |
tty | 344 | drivers/char/tty_io.c | (tty->ldisc.close)(tty); |
tty | 345 | drivers/char/tty_io.c | tty->ldisc = ldiscs[N_TTY]; |
tty | 346 | drivers/char/tty_io.c | tty->termios->c_line = N_TTY; |
tty | 347 | drivers/char/tty_io.c | if (tty->ldisc.open) { |
tty | 348 | drivers/char/tty_io.c | i = (tty->ldisc.open)(tty); |
tty | 355 | drivers/char/tty_io.c | if (tty->session > 0) { |
tty | 356 | drivers/char/tty_io.c | kill_sl(tty->session,SIGHUP,1); |
tty | 357 | drivers/char/tty_io.c | kill_sl(tty->session,SIGCONT,1); |
tty | 359 | drivers/char/tty_io.c | tty->flags = 0; |
tty | 360 | drivers/char/tty_io.c | tty->session = 0; |
tty | 361 | drivers/char/tty_io.c | tty->pgrp = -1; |
tty | 363 | drivers/char/tty_io.c | if (p->tty == tty) |
tty | 364 | drivers/char/tty_io.c | p->tty = NULL; |
tty | 366 | drivers/char/tty_io.c | if (tty->driver.hangup) |
tty | 367 | drivers/char/tty_io.c | (tty->driver.hangup)(tty); |
tty | 370 | drivers/char/tty_io.c | void tty_hangup(struct tty_struct * tty) |
tty | 373 | drivers/char/tty_io.c | printk("%s hangup...\n", tty_name(tty)); |
tty | 375 | drivers/char/tty_io.c | do_tty_hangup(tty, &hung_up_tty_fops); |
tty | 378 | drivers/char/tty_io.c | void tty_vhangup(struct tty_struct * tty) |
tty | 381 | drivers/char/tty_io.c | printk("%s vhangup...\n", tty_name(tty)); |
tty | 383 | drivers/char/tty_io.c | do_tty_hangup(tty, &hung_up_tty_fops); |
tty | 403 | drivers/char/tty_io.c | struct tty_struct *tty = current->tty; |
tty | 406 | drivers/char/tty_io.c | if (!tty) |
tty | 409 | drivers/char/tty_io.c | if (tty->pgrp > 0) { |
tty | 410 | drivers/char/tty_io.c | kill_pg(tty->pgrp, SIGHUP, priv); |
tty | 411 | drivers/char/tty_io.c | kill_pg(tty->pgrp, SIGCONT, priv); |
tty | 413 | drivers/char/tty_io.c | tty->session = 0; |
tty | 414 | drivers/char/tty_io.c | tty->pgrp = -1; |
tty | 418 | drivers/char/tty_io.c | p->tty = NULL; |
tty | 600 | drivers/char/tty_io.c | void stop_tty(struct tty_struct *tty) |
tty | 602 | drivers/char/tty_io.c | if (tty->stopped) |
tty | 604 | drivers/char/tty_io.c | tty->stopped = 1; |
tty | 605 | drivers/char/tty_io.c | if (tty->link && tty->link->packet) { |
tty | 606 | drivers/char/tty_io.c | tty->ctrl_status &= ~TIOCPKT_START; |
tty | 607 | drivers/char/tty_io.c | tty->ctrl_status |= TIOCPKT_STOP; |
tty | 608 | drivers/char/tty_io.c | wake_up_interruptible(&tty->link->read_wait); |
tty | 610 | drivers/char/tty_io.c | if (tty->driver.stop) |
tty | 611 | drivers/char/tty_io.c | (tty->driver.stop)(tty); |
tty | 614 | drivers/char/tty_io.c | void start_tty(struct tty_struct *tty) |
tty | 616 | drivers/char/tty_io.c | if (!tty->stopped) |
tty | 618 | drivers/char/tty_io.c | tty->stopped = 0; |
tty | 619 | drivers/char/tty_io.c | if (tty->link && tty->link->packet) { |
tty | 620 | drivers/char/tty_io.c | tty->ctrl_status &= ~TIOCPKT_STOP; |
tty | 621 | drivers/char/tty_io.c | tty->ctrl_status |= TIOCPKT_START; |
tty | 622 | drivers/char/tty_io.c | wake_up_interruptible(&tty->link->read_wait); |
tty | 624 | drivers/char/tty_io.c | if (tty->driver.start) |
tty | 625 | drivers/char/tty_io.c | (tty->driver.start)(tty); |
tty | 626 | drivers/char/tty_io.c | if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && |
tty | 627 | drivers/char/tty_io.c | tty->ldisc.write_wakeup) |
tty | 628 | drivers/char/tty_io.c | (tty->ldisc.write_wakeup)(tty); |
tty | 629 | drivers/char/tty_io.c | wake_up_interruptible(&tty->write_wait); |
tty | 635 | drivers/char/tty_io.c | struct tty_struct * tty; |
tty | 637 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
tty | 638 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, inode->i_rdev, "tty_read")) |
tty | 640 | drivers/char/tty_io.c | if (!tty || (tty->flags & (1 << TTY_IO_ERROR))) |
tty | 649 | drivers/char/tty_io.c | (tty->pgrp > 0) && |
tty | 650 | drivers/char/tty_io.c | (current->tty == tty) && |
tty | 651 | drivers/char/tty_io.c | (tty->pgrp != current->pgrp)) |
tty | 659 | drivers/char/tty_io.c | if (tty->ldisc.read) |
tty | 661 | drivers/char/tty_io.c | i = (tty->ldisc.read)(tty,file,(unsigned char *)buf,(unsigned int)count); |
tty | 672 | drivers/char/tty_io.c | struct tty_struct * tty; |
tty | 677 | drivers/char/tty_io.c | tty = redirect; |
tty | 679 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
tty | 680 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, inode->i_rdev, "tty_write")) |
tty | 682 | drivers/char/tty_io.c | if (!tty || !tty->driver.write || (tty->flags & (1 << TTY_IO_ERROR))) |
tty | 685 | drivers/char/tty_io.c | if (!is_console && L_TOSTOP(tty) && (tty->pgrp > 0) && |
tty | 686 | drivers/char/tty_io.c | (current->tty == tty) && (tty->pgrp != current->pgrp)) { |
tty | 695 | drivers/char/tty_io.c | if (tty->ldisc.write) |
tty | 697 | drivers/char/tty_io.c | i = (tty->ldisc.write)(tty,file,(unsigned char *)buf,(unsigned int)count); |
tty | 712 | drivers/char/tty_io.c | struct tty_struct *tty, **tty_loc, *o_tty, **o_tty_loc; |
tty | 724 | drivers/char/tty_io.c | tty = o_tty = NULL; |
tty | 741 | drivers/char/tty_io.c | if (!*tty_loc && !tty) { |
tty | 742 | drivers/char/tty_io.c | if (!(tty = (struct tty_struct*) get_free_page(GFP_KERNEL))) |
tty | 744 | drivers/char/tty_io.c | initialize_tty_struct(tty); |
tty | 745 | drivers/char/tty_io.c | tty->device = device; |
tty | 746 | drivers/char/tty_io.c | tty->driver = *driver; |
tty | 812 | drivers/char/tty_io.c | tty->termios = *tp_loc; |
tty | 813 | drivers/char/tty_io.c | tty->termios_locked = *ltp_loc; |
tty | 814 | drivers/char/tty_io.c | *tty_loc = tty; |
tty | 817 | drivers/char/tty_io.c | if (tty->ldisc.open) { |
tty | 818 | drivers/char/tty_io.c | retval = (tty->ldisc.open)(tty); |
tty | 821 | drivers/char/tty_io.c | tty = NULL; |
tty | 825 | drivers/char/tty_io.c | tty = NULL; |
tty | 861 | drivers/char/tty_io.c | if (tty) |
tty | 862 | drivers/char/tty_io.c | free_page((unsigned long) tty); |
tty | 883 | drivers/char/tty_io.c | struct tty_struct *tty, *o_tty; |
tty | 889 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
tty | 890 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, filp->f_inode->i_rdev, "release_dev")) |
tty | 895 | drivers/char/tty_io.c | tp = tty->termios; |
tty | 896 | drivers/char/tty_io.c | ltp = tty->termios_locked; |
tty | 898 | drivers/char/tty_io.c | idx = MINOR(tty->device) - tty->driver.minor_start; |
tty | 900 | drivers/char/tty_io.c | if (idx < 0 || idx >= tty->driver.num) { |
tty | 902 | drivers/char/tty_io.c | MAJOR(tty->device), MINOR(tty->device)); |
tty | 905 | drivers/char/tty_io.c | if (tty != tty->driver.table[idx]) { |
tty | 907 | drivers/char/tty_io.c | idx, MAJOR(tty->device), MINOR(tty->device)); |
tty | 910 | drivers/char/tty_io.c | if (tp != tty->driver.termios[idx]) { |
tty | 912 | drivers/char/tty_io.c | idx, MAJOR(tty->device), MINOR(tty->device)); |
tty | 915 | drivers/char/tty_io.c | if (ltp != tty->driver.termios_locked[idx]) { |
tty | 917 | drivers/char/tty_io.c | idx, MAJOR(tty->device), MINOR(tty->device)); |
tty | 923 | drivers/char/tty_io.c | printk("release_dev of %s (tty count=%d)...", tty_name(tty), |
tty | 924 | drivers/char/tty_io.c | tty->count); |
tty | 927 | drivers/char/tty_io.c | o_tty = tty->link; |
tty | 932 | drivers/char/tty_io.c | if (tty->driver.other) { |
tty | 933 | drivers/char/tty_io.c | if (o_tty != tty->driver.other->table[idx]) { |
tty | 935 | drivers/char/tty_io.c | idx, MAJOR(tty->device), MINOR(tty->device)); |
tty | 938 | drivers/char/tty_io.c | if (o_tp != tty->driver.other->termios[idx]) { |
tty | 940 | drivers/char/tty_io.c | idx, MAJOR(tty->device), MINOR(tty->device)); |
tty | 943 | drivers/char/tty_io.c | if (o_ltp != tty->driver.other->termios_locked[idx]) { |
tty | 945 | drivers/char/tty_io.c | idx, MAJOR(tty->device), MINOR(tty->device)); |
tty | 949 | drivers/char/tty_io.c | if (o_tty->link != tty) { |
tty | 956 | drivers/char/tty_io.c | if (tty->driver.close) |
tty | 957 | drivers/char/tty_io.c | tty->driver.close(tty, filp); |
tty | 958 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
tty | 959 | drivers/char/tty_io.c | tty->driver.subtype == PTY_TYPE_MASTER) { |
tty | 960 | drivers/char/tty_io.c | if (--tty->link->count < 0) { |
tty | 962 | drivers/char/tty_io.c | tty->count, tty_name(tty)); |
tty | 963 | drivers/char/tty_io.c | tty->link->count = 0; |
tty | 966 | drivers/char/tty_io.c | if (--tty->count < 0) { |
tty | 968 | drivers/char/tty_io.c | tty->count, tty_name(tty)); |
tty | 969 | drivers/char/tty_io.c | tty->count = 0; |
tty | 971 | drivers/char/tty_io.c | if (tty->count) |
tty | 979 | drivers/char/tty_io.c | if ((*p) && (*p)->tty == tty) |
tty | 980 | drivers/char/tty_io.c | (*p)->tty = NULL; |
tty | 986 | drivers/char/tty_io.c | tty->driver.other->table[idx] = NULL; |
tty | 987 | drivers/char/tty_io.c | tty->driver.other->termios[idx] = NULL; |
tty | 988 | drivers/char/tty_io.c | tty->driver.other->termios_locked[idx] = NULL; |
tty | 999 | drivers/char/tty_io.c | if (tty->ldisc.close) |
tty | 1000 | drivers/char/tty_io.c | (tty->ldisc.close)(tty); |
tty | 1001 | drivers/char/tty_io.c | tty->ldisc = ldiscs[N_TTY]; |
tty | 1002 | drivers/char/tty_io.c | tty->termios->c_line = N_TTY; |
tty | 1004 | drivers/char/tty_io.c | tty->driver.table[idx] = NULL; |
tty | 1005 | drivers/char/tty_io.c | if (tty->driver.flags & TTY_DRIVER_RESET_TERMIOS) { |
tty | 1006 | drivers/char/tty_io.c | tty->driver.termios[idx] = NULL; |
tty | 1007 | drivers/char/tty_io.c | tty->driver.termios_locked[idx] = NULL; |
tty | 1011 | drivers/char/tty_io.c | if (tty == redirect || o_tty == redirect) |
tty | 1018 | drivers/char/tty_io.c | if (tty->flip.tqueue.sync) { |
tty | 1022 | drivers/char/tty_io.c | if (tq == &tty->flip.tqueue) { |
tty | 1032 | drivers/char/tty_io.c | tty->magic = 0; |
tty | 1033 | drivers/char/tty_io.c | (*tty->driver.refcount)--; |
tty | 1034 | drivers/char/tty_io.c | free_page((unsigned long) tty); |
tty | 1060 | drivers/char/tty_io.c | struct tty_struct *tty; |
tty | 1069 | drivers/char/tty_io.c | if (!current->tty) |
tty | 1071 | drivers/char/tty_io.c | device = current->tty->device; |
tty | 1080 | drivers/char/tty_io.c | retval = init_dev(device, &tty); |
tty | 1081 | drivers/char/tty_io.c | filp->private_data = tty; |
tty | 1084 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
tty | 1085 | drivers/char/tty_io.c | tty->driver.subtype == PTY_TYPE_MASTER) |
tty | 1088 | drivers/char/tty_io.c | printk("opening %s...", tty_name(tty)); |
tty | 1090 | drivers/char/tty_io.c | if (test_bit(TTY_EXCLUSIVE, &tty->flags) && !suser()) |
tty | 1092 | drivers/char/tty_io.c | else if (tty->driver.open) |
tty | 1093 | drivers/char/tty_io.c | retval = tty->driver.open(tty, filp); |
tty | 1099 | drivers/char/tty_io.c | printk("error %d in opening %s...", retval, tty_name(tty)); |
tty | 1116 | drivers/char/tty_io.c | !current->tty && |
tty | 1117 | drivers/char/tty_io.c | tty->session == 0) { |
tty | 1118 | drivers/char/tty_io.c | current->tty = tty; |
tty | 1119 | drivers/char/tty_io.c | tty->session = current->session; |
tty | 1120 | drivers/char/tty_io.c | tty->pgrp = current->pgrp; |
tty | 1137 | drivers/char/tty_io.c | struct tty_struct * tty; |
tty | 1139 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
tty | 1140 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, inode->i_rdev, "tty_select")) |
tty | 1143 | drivers/char/tty_io.c | if (tty->ldisc.select) |
tty | 1144 | drivers/char/tty_io.c | return (tty->ldisc.select)(tty, inode, filp, sel_type, wait); |
tty | 1150 | drivers/char/tty_io.c | struct tty_struct * tty; |
tty | 1153 | drivers/char/tty_io.c | tty = (struct tty_struct *)filp->private_data; |
tty | 1154 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, inode->i_rdev, "tty_fasync")) |
tty | 1157 | drivers/char/tty_io.c | for (fa = tty->fasync, prev = 0; fa; prev= fa, fa = fa->fa_next) { |
tty | 1170 | drivers/char/tty_io.c | fa->fa_next = tty->fasync; |
tty | 1171 | drivers/char/tty_io.c | tty->fasync = fa; |
tty | 1172 | drivers/char/tty_io.c | if (!tty->read_wait) |
tty | 1173 | drivers/char/tty_io.c | tty->minimum_to_wake = 1; |
tty | 1180 | drivers/char/tty_io.c | tty->fasync = fa->fa_next; |
tty | 1182 | drivers/char/tty_io.c | if (!tty->fasync && !tty->read_wait) |
tty | 1183 | drivers/char/tty_io.c | tty->minimum_to_wake = N_TTY_BUF_SIZE; |
tty | 1224 | drivers/char/tty_io.c | struct tty_struct * tty; |
tty | 1231 | drivers/char/tty_io.c | tty = (struct tty_struct *)file->private_data; |
tty | 1232 | drivers/char/tty_io.c | if (tty_paranoia_check(tty, inode->i_rdev, "tty_ioctl")) |
tty | 1235 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
tty | 1236 | drivers/char/tty_io.c | tty->driver.subtype == PTY_TYPE_MASTER) |
tty | 1237 | drivers/char/tty_io.c | real_tty = tty->link; |
tty | 1239 | drivers/char/tty_io.c | real_tty = tty; |
tty | 1243 | drivers/char/tty_io.c | if ((current->tty != tty) && !suser()) |
tty | 1246 | drivers/char/tty_io.c | tty->ldisc.receive_buf(tty, &ch, &mbz, 1); |
tty | 1253 | drivers/char/tty_io.c | memcpy_tofs((struct winsize *) arg, &tty->winsize, |
tty | 1259 | drivers/char/tty_io.c | if (memcmp(&tmp_ws, &tty->winsize, |
tty | 1261 | drivers/char/tty_io.c | if (tty->pgrp > 0) |
tty | 1262 | drivers/char/tty_io.c | kill_pg(tty->pgrp, SIGWINCH, 1); |
tty | 1263 | drivers/char/tty_io.c | if ((real_tty->pgrp != tty->pgrp) && |
tty | 1267 | drivers/char/tty_io.c | tty->winsize = tmp_ws; |
tty | 1271 | drivers/char/tty_io.c | if (tty->driver.type == TTY_DRIVER_TYPE_CONSOLE) { |
tty | 1289 | drivers/char/tty_io.c | set_bit(TTY_EXCLUSIVE, &tty->flags); |
tty | 1292 | drivers/char/tty_io.c | clear_bit(TTY_EXCLUSIVE, &tty->flags); |
tty | 1295 | drivers/char/tty_io.c | if (current->tty != tty) |
tty | 1299 | drivers/char/tty_io.c | current->tty = NULL; |
tty | 1303 | drivers/char/tty_io.c | (current->session == tty->session)) |
tty | 1309 | drivers/char/tty_io.c | if (!current->leader || current->tty) |
tty | 1311 | drivers/char/tty_io.c | if (tty->session > 0) { |
tty | 1323 | drivers/char/tty_io.c | if (p->tty == tty) |
tty | 1324 | drivers/char/tty_io.c | p->tty = NULL; |
tty | 1328 | drivers/char/tty_io.c | current->tty = tty; |
tty | 1329 | drivers/char/tty_io.c | tty->session = current->session; |
tty | 1330 | drivers/char/tty_io.c | tty->pgrp = current->pgrp; |
tty | 1337 | drivers/char/tty_io.c | if (tty == real_tty && current->tty != real_tty) |
tty | 1349 | drivers/char/tty_io.c | if (!current->tty || |
tty | 1350 | drivers/char/tty_io.c | (current->tty != real_tty) || |
tty | 1365 | drivers/char/tty_io.c | put_fs_long(tty->ldisc.num, (unsigned long *) arg); |
tty | 1368 | drivers/char/tty_io.c | retval = tty_check_change(tty); |
tty | 1372 | drivers/char/tty_io.c | return tty_set_ldisc(tty, arg); |
tty | 1383 | drivers/char/tty_io.c | return set_selection(arg, tty); |
tty | 1385 | drivers/char/tty_io.c | return paste_selection(tty); |
tty | 1402 | drivers/char/tty_io.c | if (tty->driver.ioctl) { |
tty | 1403 | drivers/char/tty_io.c | retval = (tty->driver.ioctl)(tty, file, |
tty | 1408 | drivers/char/tty_io.c | if (tty->ldisc.ioctl) { |
tty | 1409 | drivers/char/tty_io.c | retval = (tty->ldisc.ioctl)(tty, file, |
tty | 1431 | drivers/char/tty_io.c | void do_SAK( struct tty_struct *tty) |
tty | 1434 | drivers/char/tty_io.c | tty_hangup(tty); |
tty | 1437 | drivers/char/tty_io.c | int session = tty->session; |
tty | 1441 | drivers/char/tty_io.c | if (tty->ldisc.flush_buffer) |
tty | 1442 | drivers/char/tty_io.c | tty->ldisc.flush_buffer(tty); |
tty | 1443 | drivers/char/tty_io.c | if (tty->driver.flush_buffer) |
tty | 1444 | drivers/char/tty_io.c | tty->driver.flush_buffer(tty); |
tty | 1448 | drivers/char/tty_io.c | if (((*p)->tty == tty) || |
tty | 1455 | drivers/char/tty_io.c | (filp->private_data == tty)) { |
tty | 1471 | drivers/char/tty_io.c | struct tty_struct *tty = (struct tty_struct *) private_; |
tty | 1476 | drivers/char/tty_io.c | if (tty->flip.buf_num) { |
tty | 1477 | drivers/char/tty_io.c | cp = tty->flip.char_buf + TTY_FLIPBUF_SIZE; |
tty | 1478 | drivers/char/tty_io.c | fp = tty->flip.flag_buf + TTY_FLIPBUF_SIZE; |
tty | 1479 | drivers/char/tty_io.c | tty->flip.buf_num = 0; |
tty | 1482 | drivers/char/tty_io.c | tty->flip.char_buf_ptr = tty->flip.char_buf; |
tty | 1483 | drivers/char/tty_io.c | tty->flip.flag_buf_ptr = tty->flip.flag_buf; |
tty | 1485 | drivers/char/tty_io.c | cp = tty->flip.char_buf; |
tty | 1486 | drivers/char/tty_io.c | fp = tty->flip.flag_buf; |
tty | 1487 | drivers/char/tty_io.c | tty->flip.buf_num = 1; |
tty | 1490 | drivers/char/tty_io.c | tty->flip.char_buf_ptr = tty->flip.char_buf + TTY_FLIPBUF_SIZE; |
tty | 1491 | drivers/char/tty_io.c | tty->flip.flag_buf_ptr = tty->flip.flag_buf + TTY_FLIPBUF_SIZE; |
tty | 1493 | drivers/char/tty_io.c | count = tty->flip.count; |
tty | 1494 | drivers/char/tty_io.c | tty->flip.count = 0; |
tty | 1498 | drivers/char/tty_io.c | if (count > tty->max_flip_cnt) |
tty | 1499 | drivers/char/tty_io.c | tty->max_flip_cnt = count; |
tty | 1501 | drivers/char/tty_io.c | tty->ldisc.receive_buf(tty, cp, fp, count); |
tty | 1507 | drivers/char/tty_io.c | static void initialize_tty_struct(struct tty_struct *tty) |
tty | 1509 | drivers/char/tty_io.c | memset(tty, 0, sizeof(struct tty_struct)); |
tty | 1510 | drivers/char/tty_io.c | tty->magic = TTY_MAGIC; |
tty | 1511 | drivers/char/tty_io.c | tty->ldisc = ldiscs[N_TTY]; |
tty | 1512 | drivers/char/tty_io.c | tty->pgrp = -1; |
tty | 1513 | drivers/char/tty_io.c | tty->flip.char_buf_ptr = tty->flip.char_buf; |
tty | 1514 | drivers/char/tty_io.c | tty->flip.flag_buf_ptr = tty->flip.flag_buf; |
tty | 1515 | drivers/char/tty_io.c | tty->flip.tqueue.routine = flush_to_ldisc; |
tty | 1516 | drivers/char/tty_io.c | tty->flip.tqueue.data = tty; |
tty | 1522 | drivers/char/tty_io.c | void tty_default_put_char(struct tty_struct *tty, unsigned char ch) |
tty | 1524 | drivers/char/tty_io.c | tty->driver.write(tty, 0, &ch, 1); |
tty | 41 | drivers/char/tty_ioctl.c | void wait_until_sent(struct tty_struct * tty, int timeout) |
tty | 45 | drivers/char/tty_ioctl.c | if (!tty->driver.chars_in_buffer || |
tty | 46 | drivers/char/tty_ioctl.c | !tty->driver.chars_in_buffer(tty)) |
tty | 48 | drivers/char/tty_ioctl.c | add_wait_queue(&tty->write_wait, &wait); |
tty | 58 | drivers/char/tty_ioctl.c | if (!tty->driver.chars_in_buffer(tty)) |
tty | 63 | drivers/char/tty_ioctl.c | remove_wait_queue(&tty->write_wait, &wait); |
tty | 89 | drivers/char/tty_ioctl.c | static int set_termios(struct tty_struct * tty, unsigned long arg, int opt) |
tty | 93 | drivers/char/tty_ioctl.c | struct termios old_termios = *tty->termios; |
tty | 96 | drivers/char/tty_ioctl.c | retval = tty_check_change(tty); |
tty | 101 | drivers/char/tty_ioctl.c | tmp_termios = *tty->termios; |
tty | 116 | drivers/char/tty_ioctl.c | if ((opt & TERMIOS_FLUSH) && tty->ldisc.flush_buffer) |
tty | 117 | drivers/char/tty_ioctl.c | tty->ldisc.flush_buffer(tty); |
tty | 120 | drivers/char/tty_ioctl.c | wait_until_sent(tty, 0); |
tty | 123 | drivers/char/tty_ioctl.c | *tty->termios = tmp_termios; |
tty | 124 | drivers/char/tty_ioctl.c | unset_locked_termios(tty->termios, &old_termios, tty->termios_locked); |
tty | 125 | drivers/char/tty_ioctl.c | canon_change = (old_termios.c_lflag ^ tty->termios->c_lflag) & ICANON; |
tty | 127 | drivers/char/tty_ioctl.c | memset(&tty->read_flags, 0, sizeof tty->read_flags); |
tty | 128 | drivers/char/tty_ioctl.c | tty->canon_head = tty->read_tail; |
tty | 129 | drivers/char/tty_ioctl.c | tty->canon_data = 0; |
tty | 130 | drivers/char/tty_ioctl.c | tty->erasing = 0; |
tty | 133 | drivers/char/tty_ioctl.c | if (canon_change && !L_ICANON(tty) && tty->read_cnt) |
tty | 135 | drivers/char/tty_ioctl.c | wake_up_interruptible(&tty->read_wait); |
tty | 139 | drivers/char/tty_ioctl.c | if (tty->link && tty->link->packet) { |
tty | 143 | drivers/char/tty_ioctl.c | int new_flow = (I_IXON(tty) && |
tty | 144 | drivers/char/tty_ioctl.c | STOP_CHAR(tty) == '\023' && |
tty | 145 | drivers/char/tty_ioctl.c | START_CHAR(tty) == '\021'); |
tty | 147 | drivers/char/tty_ioctl.c | tty->ctrl_status &= ~(TIOCPKT_DOSTOP | TIOCPKT_NOSTOP); |
tty | 149 | drivers/char/tty_ioctl.c | tty->ctrl_status |= TIOCPKT_DOSTOP; |
tty | 151 | drivers/char/tty_ioctl.c | tty->ctrl_status |= TIOCPKT_NOSTOP; |
tty | 152 | drivers/char/tty_ioctl.c | wake_up_interruptible(&tty->link->read_wait); |
tty | 156 | drivers/char/tty_ioctl.c | if (tty->driver.set_termios) |
tty | 157 | drivers/char/tty_ioctl.c | (*tty->driver.set_termios)(tty, &old_termios); |
tty | 159 | drivers/char/tty_ioctl.c | if (tty->ldisc.set_termios) |
tty | 160 | drivers/char/tty_ioctl.c | (*tty->ldisc.set_termios)(tty, &old_termios); |
tty | 165 | drivers/char/tty_ioctl.c | static int get_termio(struct tty_struct * tty, struct termio * termio) |
tty | 173 | drivers/char/tty_ioctl.c | tmp_termio.c_iflag = tty->termios->c_iflag; |
tty | 174 | drivers/char/tty_ioctl.c | tmp_termio.c_oflag = tty->termios->c_oflag; |
tty | 175 | drivers/char/tty_ioctl.c | tmp_termio.c_cflag = tty->termios->c_cflag; |
tty | 176 | drivers/char/tty_ioctl.c | tmp_termio.c_lflag = tty->termios->c_lflag; |
tty | 177 | drivers/char/tty_ioctl.c | tmp_termio.c_line = tty->termios->c_line; |
tty | 179 | drivers/char/tty_ioctl.c | tmp_termio.c_cc[i] = tty->termios->c_cc[i]; |
tty | 184 | drivers/char/tty_ioctl.c | static unsigned long inq_canon(struct tty_struct * tty) |
tty | 188 | drivers/char/tty_ioctl.c | if (!tty->canon_data || !tty->read_buf) |
tty | 190 | drivers/char/tty_ioctl.c | head = tty->canon_head; |
tty | 191 | drivers/char/tty_ioctl.c | tail = tty->read_tail; |
tty | 195 | drivers/char/tty_ioctl.c | if (test_bit(tail, &tty->read_flags) && |
tty | 196 | drivers/char/tty_ioctl.c | tty->read_buf[tail] == __DISABLED_CHAR) |
tty | 203 | drivers/char/tty_ioctl.c | int n_tty_ioctl(struct tty_struct * tty, struct file * file, |
tty | 210 | drivers/char/tty_ioctl.c | if (tty->driver.type == TTY_DRIVER_TYPE_PTY && |
tty | 211 | drivers/char/tty_ioctl.c | tty->driver.subtype == PTY_TYPE_MASTER) |
tty | 212 | drivers/char/tty_ioctl.c | real_tty = tty->link; |
tty | 214 | drivers/char/tty_ioctl.c | real_tty = tty; |
tty | 241 | drivers/char/tty_ioctl.c | retval = tty_check_change(tty); |
tty | 246 | drivers/char/tty_ioctl.c | stop_tty(tty); |
tty | 249 | drivers/char/tty_ioctl.c | start_tty(tty); |
tty | 252 | drivers/char/tty_ioctl.c | if (STOP_CHAR(tty) != __DISABLED_CHAR) |
tty | 253 | drivers/char/tty_ioctl.c | tty->driver.write(tty, 0, |
tty | 254 | drivers/char/tty_ioctl.c | &STOP_CHAR(tty), 1); |
tty | 257 | drivers/char/tty_ioctl.c | if (START_CHAR(tty) != __DISABLED_CHAR) |
tty | 258 | drivers/char/tty_ioctl.c | tty->driver.write(tty, 0, |
tty | 259 | drivers/char/tty_ioctl.c | &START_CHAR(tty), 1); |
tty | 266 | drivers/char/tty_ioctl.c | retval = tty_check_change(tty); |
tty | 271 | drivers/char/tty_ioctl.c | if (tty->ldisc.flush_buffer) |
tty | 272 | drivers/char/tty_ioctl.c | tty->ldisc.flush_buffer(tty); |
tty | 275 | drivers/char/tty_ioctl.c | if (tty->ldisc.flush_buffer) |
tty | 276 | drivers/char/tty_ioctl.c | tty->ldisc.flush_buffer(tty); |
tty | 279 | drivers/char/tty_ioctl.c | if (tty->driver.flush_buffer) |
tty | 280 | drivers/char/tty_ioctl.c | tty->driver.flush_buffer(tty); |
tty | 291 | drivers/char/tty_ioctl.c | if (tty->driver.chars_in_buffer) |
tty | 292 | drivers/char/tty_ioctl.c | put_fs_long(tty->driver.chars_in_buffer(tty), |
tty | 302 | drivers/char/tty_ioctl.c | if (L_ICANON(tty)) |
tty | 303 | drivers/char/tty_ioctl.c | put_fs_long(inq_canon(tty), |
tty | 306 | drivers/char/tty_ioctl.c | put_fs_long(tty->read_cnt, |
tty | 328 | drivers/char/tty_ioctl.c | if (tty->driver.type != TTY_DRIVER_TYPE_PTY || |
tty | 329 | drivers/char/tty_ioctl.c | tty->driver.subtype != PTY_TYPE_MASTER) |
tty | 336 | drivers/char/tty_ioctl.c | if (!tty->packet) { |
tty | 337 | drivers/char/tty_ioctl.c | tty->packet = 1; |
tty | 338 | drivers/char/tty_ioctl.c | tty->link->ctrl_status = 0; |
tty | 341 | drivers/char/tty_ioctl.c | tty->packet = 0; |
tty | 346 | drivers/char/tty_ioctl.c | retval = tty_check_change(tty); |
tty | 349 | drivers/char/tty_ioctl.c | wait_until_sent(tty, 0); |
tty | 350 | drivers/char/tty_ioctl.c | if (!tty->driver.ioctl) |
tty | 352 | drivers/char/tty_ioctl.c | tty->driver.ioctl(tty, file, cmd, arg); |
tty | 118 | drivers/char/vt.c | int vt_ioctl(struct tty_struct *tty, struct file * file, |
tty | 124 | drivers/char/vt.c | struct vt_struct *vt = (struct vt_struct *)tty->driver_data; |
tty | 240 | drivers/char/vt.c | if (tty->ldisc.flush_buffer) |
tty | 241 | drivers/char/vt.c | tty->ldisc.flush_buffer(tty); |
tty | 102 | drivers/net/ppp.c | #define ppp_find(tty) ((struct ppp *) tty->disc_data) |
tty | 143 | drivers/net/ppp.c | static int ppp_select(struct tty_struct *tty, struct inode * inode, |
tty | 149 | drivers/net/ppp.c | static int ppp_receive_room(struct tty_struct *tty); |
tty | 150 | drivers/net/ppp.c | static void ppp_receive_buf(struct tty_struct *tty, unsigned char *cp, |
tty | 152 | drivers/net/ppp.c | static void ppp_write_wakeup(struct tty_struct *tty); |
tty | 260 | drivers/net/ppp.c | ppp->tty = NULL; |
tty | 462 | drivers/net/ppp.c | if (ppp->tty != NULL && ppp->tty->disc_data == ppp) |
tty | 463 | drivers/net/ppp.c | ppp->tty->disc_data = NULL; /* Break the tty->ppp link */ |
tty | 487 | drivers/net/ppp.c | ppp->tty = NULL; |
tty | 491 | drivers/net/ppp.c | ppp_close(struct tty_struct *tty) |
tty | 493 | drivers/net/ppp.c | struct ppp *ppp = ppp_find(tty); |
tty | 507 | drivers/net/ppp.c | ppp_open(struct tty_struct *tty) |
tty | 509 | drivers/net/ppp.c | struct ppp *ppp = ppp_find(tty); |
tty | 526 | drivers/net/ppp.c | ppp->tty = tty; |
tty | 529 | drivers/net/ppp.c | tty->disc_data = ppp; |
tty | 530 | drivers/net/ppp.c | if (tty->driver.flush_buffer) |
tty | 531 | drivers/net/ppp.c | tty->driver.flush_buffer(tty); |
tty | 532 | drivers/net/ppp.c | if (tty->ldisc.flush_buffer) |
tty | 533 | drivers/net/ppp.c | tty->ldisc.flush_buffer(tty); |
tty | 535 | drivers/net/ppp.c | tty_read_flush (tty); |
tty | 536 | drivers/net/ppp.c | tty_write_flush (tty); |
tty | 579 | drivers/net/ppp.c | if (ppp->tty == NULL) { |
tty | 597 | drivers/net/ppp.c | if (ppp->tty == NULL) { |
tty | 675 | drivers/net/ppp.c | answer = tty_write_data (ppp->tty, |
tty | 699 | drivers/net/ppp.c | actual = ppp->tty->driver.write(ppp->tty, 0, ppp->xbuff, count); |
tty | 705 | drivers/net/ppp.c | ppp->tty->flags |= (1 << TTY_DO_WRITE_WAKEUP); |
tty | 709 | drivers/net/ppp.c | static void ppp_write_wakeup(struct tty_struct *tty) |
tty | 712 | drivers/net/ppp.c | struct ppp *ppp = ppp_find(tty); |
tty | 734 | drivers/net/ppp.c | actual = tty->driver.write(tty, 0, ppp->xtail, count); |
tty | 738 | drivers/net/ppp.c | tty->flags &= ~TTY_DO_WRITE_WAKEUP; |
tty | 783 | drivers/net/ppp.c | ppp_dump_inqueue(struct tty_struct *tty) |
tty | 785 | drivers/net/ppp.c | int head = tty->read_q.head, |
tty | 786 | drivers/net/ppp.c | tail = tty->read_q.tail, |
tty | 791 | drivers/net/ppp.c | (unsigned int) tty->termios->c_iflag)) |
tty | 797 | drivers/net/ppp.c | buffer [count] = tty->read_q.buf[i]; |
tty | 810 | drivers/net/ppp.c | void ppp_tty_input_ready(struct tty_struct *tty) |
tty | 812 | drivers/net/ppp.c | struct ppp *ppp = ppp_find(tty); |
tty | 827 | drivers/net/ppp.c | ppp_dump_inqueue(ppp->tty); |
tty | 830 | drivers/net/ppp.c | n = tty_read_raw_data(tty, buff, 128); |
tty | 905 | drivers/net/ppp.c | static int ppp_receive_room(struct tty_struct *tty) |
tty | 911 | drivers/net/ppp.c | static void ppp_receive_buf(struct tty_struct *tty, unsigned char *cp, |
tty | 914 | drivers/net/ppp.c | register struct ppp *ppp = ppp_find (tty); |
tty | 1179 | drivers/net/ppp.c | kill_fasync(ppp->tty->fasync, SIGIO); |
tty | 1214 | drivers/net/ppp.c | ppp_read(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
tty | 1216 | drivers/net/ppp.c | struct ppp *ppp = ppp_find(tty); |
tty | 1315 | drivers/net/ppp.c | ppp_write(struct tty_struct *tty, struct file *file, unsigned char *buf, unsigned int nr) |
tty | 1317 | drivers/net/ppp.c | struct ppp *ppp = ppp_find(tty); |
tty | 1390 | drivers/net/ppp.c | ppp_ioctl(struct tty_struct *tty, struct file *file, unsigned int i, |
tty | 1393 | drivers/net/ppp.c | struct ppp *ppp = ppp_find(tty); |
tty | 1590 | drivers/net/ppp.c | error = n_tty_ioctl(tty, file, i, l); |
tty | 1613 | drivers/net/ppp.c | ppp_select (struct tty_struct *tty, struct inode * inode, |
tty | 1616 | drivers/net/ppp.c | struct ppp *ppp = ppp_find (tty); |
tty | 1640 | drivers/net/ppp.c | if (tty->packet && tty->link->ctrl_status) |
tty | 1644 | drivers/net/ppp.c | if (tty->flags & (1 << TTY_SLAVE_CLOSED)) |
tty | 1679 | drivers/net/ppp.c | struct tty_struct *tty; |
tty | 1693 | drivers/net/ppp.c | tty = ppp->tty; |
tty | 1703 | drivers/net/ppp.c | if (tty == NULL) { |
tty | 1890 | drivers/net/ppp.c | ppp_find(struct tty_struct *tty) |
tty | 1894 | drivers/net/ppp.c | if (ppp_ctrl[i].inuse && (ppp_ctrl[i].tty == tty)) return &ppp_ctrl[i]; |
tty | 97 | drivers/net/slip.c | sl->tty = NULL; |
tty | 131 | drivers/net/slip.c | sl->tty = NULL; |
tty | 151 | drivers/net/slip.c | sl->tty = NULL; |
tty | 381 | drivers/net/slip.c | actual = sl->tty->driver.write(sl->tty, 0, sl->xbuff, count); |
tty | 388 | drivers/net/slip.c | sl->tty->flags |= (1 << TTY_DO_WRITE_WAKEUP); |
tty | 396 | drivers/net/slip.c | static void slip_write_wakeup(struct tty_struct *tty) |
tty | 399 | drivers/net/slip.c | struct slip *sl = (struct slip *) tty->disc_data; |
tty | 419 | drivers/net/slip.c | answer = tty->driver.write(tty, 0, sl->xtail, count); |
tty | 422 | drivers/net/slip.c | tty->flags &= ~TTY_DO_WRITE_WAKEUP; |
tty | 452 | drivers/net/slip.c | struct tty_struct *tty; |
tty | 458 | drivers/net/slip.c | tty = sl->tty; |
tty | 538 | drivers/net/slip.c | if (sl->tty == NULL) { |
tty | 617 | drivers/net/slip.c | if (sl->tty == NULL) { |
tty | 620 | drivers/net/slip.c | sl->tty->disc_data = 0; |
tty | 635 | drivers/net/slip.c | static int slip_receive_room(struct tty_struct *tty) |
tty | 646 | drivers/net/slip.c | static void slip_receive_buf(struct tty_struct *tty, unsigned char *cp, |
tty | 649 | drivers/net/slip.c | struct slip *sl = (struct slip *) tty->disc_data; |
tty | 683 | drivers/net/slip.c | slip_open(struct tty_struct *tty) |
tty | 685 | drivers/net/slip.c | struct slip *sl = (struct slip *) tty->disc_data; |
tty | 696 | drivers/net/slip.c | sl->tty = tty; |
tty | 697 | drivers/net/slip.c | tty->disc_data = sl; |
tty | 698 | drivers/net/slip.c | if (tty->driver.flush_buffer) |
tty | 699 | drivers/net/slip.c | tty->driver.flush_buffer(tty); |
tty | 700 | drivers/net/slip.c | if (tty->ldisc.flush_buffer) |
tty | 701 | drivers/net/slip.c | tty->ldisc.flush_buffer(tty); |
tty | 749 | drivers/net/slip.c | slip_close(struct tty_struct *tty) |
tty | 751 | drivers/net/slip.c | struct slip *sl = (struct slip *) tty->disc_data; |
tty | 942 | drivers/net/slip.c | slip_ioctl(struct tty_struct *tty, void *file, int cmd, void *arg) |
tty | 944 | drivers/net/slip.c | struct slip *sl = (struct slip *) tty->disc_data; |
tty | 989 | drivers/net/slip.c | return n_tty_ioctl(tty, (struct file *) file, cmd, (unsigned long) arg); |
tty | 44 | drivers/net/slip.h | struct tty_struct *tty; /* ptr to TTY structure */ |
tty | 520 | fs/open.c | if (current->tty) |
tty | 521 | fs/open.c | tty_vhangup(current->tty); |
tty | 319 | fs/proc/array.c | if ((*p)->tty) |
tty | 320 | fs/proc/array.c | tty_pgrp = (*p)->tty->pgrp; |
tty | 332 | fs/proc/array.c | (*p)->tty ? (*p)->tty->device : 0, |
tty | 189 | include/linux/ppp.h | struct tty_struct *tty; /* ptr to TTY structure */ |
tty | 290 | include/linux/sched.h | struct tty_struct *tty; /* NULL if no tty */ |
tty | 90 | include/linux/serial.h | struct tty_struct *tty; |
tty | 94 | include/linux/tty.h | #define INTR_CHAR(tty) ((tty)->termios->c_cc[VINTR]) |
tty | 95 | include/linux/tty.h | #define QUIT_CHAR(tty) ((tty)->termios->c_cc[VQUIT]) |
tty | 96 | include/linux/tty.h | #define ERASE_CHAR(tty) ((tty)->termios->c_cc[VERASE]) |
tty | 97 | include/linux/tty.h | #define KILL_CHAR(tty) ((tty)->termios->c_cc[VKILL]) |
tty | 98 | include/linux/tty.h | #define EOF_CHAR(tty) ((tty)->termios->c_cc[VEOF]) |
tty | 99 | include/linux/tty.h | #define TIME_CHAR(tty) ((tty)->termios->c_cc[VTIME]) |
tty | 100 | include/linux/tty.h | #define MIN_CHAR(tty) ((tty)->termios->c_cc[VMIN]) |
tty | 101 | include/linux/tty.h | #define SWTC_CHAR(tty) ((tty)->termios->c_cc[VSWTC]) |
tty | 102 | include/linux/tty.h | #define START_CHAR(tty) ((tty)->termios->c_cc[VSTART]) |
tty | 103 | include/linux/tty.h | #define STOP_CHAR(tty) ((tty)->termios->c_cc[VSTOP]) |
tty | 104 | include/linux/tty.h | #define SUSP_CHAR(tty) ((tty)->termios->c_cc[VSUSP]) |
tty | 105 | include/linux/tty.h | #define EOL_CHAR(tty) ((tty)->termios->c_cc[VEOL]) |
tty | 106 | include/linux/tty.h | #define REPRINT_CHAR(tty) ((tty)->termios->c_cc[VREPRINT]) |
tty | 107 | include/linux/tty.h | #define DISCARD_CHAR(tty) ((tty)->termios->c_cc[VDISCARD]) |
tty | 108 | include/linux/tty.h | #define WERASE_CHAR(tty) ((tty)->termios->c_cc[VWERASE]) |
tty | 109 | include/linux/tty.h | #define LNEXT_CHAR(tty) ((tty)->termios->c_cc[VLNEXT]) |
tty | 110 | include/linux/tty.h | #define EOL2_CHAR(tty) ((tty)->termios->c_cc[VEOL2]) |
tty | 112 | include/linux/tty.h | #define _I_FLAG(tty,f) ((tty)->termios->c_iflag & (f)) |
tty | 113 | include/linux/tty.h | #define _O_FLAG(tty,f) ((tty)->termios->c_oflag & (f)) |
tty | 114 | include/linux/tty.h | #define _C_FLAG(tty,f) ((tty)->termios->c_cflag & (f)) |
tty | 115 | include/linux/tty.h | #define _L_FLAG(tty,f) ((tty)->termios->c_lflag & (f)) |
tty | 117 | include/linux/tty.h | #define I_IGNBRK(tty) _I_FLAG((tty),IGNBRK) |
tty | 118 | include/linux/tty.h | #define I_BRKINT(tty) _I_FLAG((tty),BRKINT) |
tty | 119 | include/linux/tty.h | #define I_IGNPAR(tty) _I_FLAG((tty),IGNPAR) |
tty | 120 | include/linux/tty.h | #define I_PARMRK(tty) _I_FLAG((tty),PARMRK) |
tty | 121 | include/linux/tty.h | #define I_INPCK(tty) _I_FLAG((tty),INPCK) |
tty | 122 | include/linux/tty.h | #define I_ISTRIP(tty) _I_FLAG((tty),ISTRIP) |
tty | 123 | include/linux/tty.h | #define I_INLCR(tty) _I_FLAG((tty),INLCR) |
tty | 124 | include/linux/tty.h | #define I_IGNCR(tty) _I_FLAG((tty),IGNCR) |
tty | 125 | include/linux/tty.h | #define I_ICRNL(tty) _I_FLAG((tty),ICRNL) |
tty | 126 | include/linux/tty.h | #define I_IUCLC(tty) _I_FLAG((tty),IUCLC) |
tty | 127 | include/linux/tty.h | #define I_IXON(tty) _I_FLAG((tty),IXON) |
tty | 128 | include/linux/tty.h | #define I_IXANY(tty) _I_FLAG((tty),IXANY) |
tty | 129 | include/linux/tty.h | #define I_IXOFF(tty) _I_FLAG((tty),IXOFF) |
tty | 130 | include/linux/tty.h | #define I_IMAXBEL(tty) _I_FLAG((tty),IMAXBEL) |
tty | 132 | include/linux/tty.h | #define O_OPOST(tty) _O_FLAG((tty),OPOST) |
tty | 133 | include/linux/tty.h | #define O_OLCUC(tty) _O_FLAG((tty),OLCUC) |
tty | 134 | include/linux/tty.h | #define O_ONLCR(tty) _O_FLAG((tty),ONLCR) |
tty | 135 | include/linux/tty.h | #define O_OCRNL(tty) _O_FLAG((tty),OCRNL) |
tty | 136 | include/linux/tty.h | #define O_ONOCR(tty) _O_FLAG((tty),ONOCR) |
tty | 137 | include/linux/tty.h | #define O_ONLRET(tty) _O_FLAG((tty),ONLRET) |
tty | 138 | include/linux/tty.h | #define O_OFILL(tty) _O_FLAG((tty),OFILL) |
tty | 139 | include/linux/tty.h | #define O_OFDEL(tty) _O_FLAG((tty),OFDEL) |
tty | 140 | include/linux/tty.h | #define O_NLDLY(tty) _O_FLAG((tty),NLDLY) |
tty | 141 | include/linux/tty.h | #define O_CRDLY(tty) _O_FLAG((tty),CRDLY) |
tty | 142 | include/linux/tty.h | #define O_TABDLY(tty) _O_FLAG((tty),TABDLY) |
tty | 143 | include/linux/tty.h | #define O_BSDLY(tty) _O_FLAG((tty),BSDLY) |
tty | 144 | include/linux/tty.h | #define O_VTDLY(tty) _O_FLAG((tty),VTDLY) |
tty | 145 | include/linux/tty.h | #define O_FFDLY(tty) _O_FLAG((tty),FFDLY) |
tty | 147 | include/linux/tty.h | #define C_BAUD(tty) _C_FLAG((tty),CBAUD) |
tty | 148 | include/linux/tty.h | #define C_CSIZE(tty) _C_FLAG((tty),CSIZE) |
tty | 149 | include/linux/tty.h | #define C_CSTOPB(tty) _C_FLAG((tty),CSTOPB) |
tty | 150 | include/linux/tty.h | #define C_CREAD(tty) _C_FLAG((tty),CREAD) |
tty | 151 | include/linux/tty.h | #define C_PARENB(tty) _C_FLAG((tty),PARENB) |
tty | 152 | include/linux/tty.h | #define C_PARODD(tty) _C_FLAG((tty),PARODD) |
tty | 153 | include/linux/tty.h | #define C_HUPCL(tty) _C_FLAG((tty),HUPCL) |
tty | 154 | include/linux/tty.h | #define C_CLOCAL(tty) _C_FLAG((tty),CLOCAL) |
tty | 155 | include/linux/tty.h | #define C_CIBAUD(tty) _C_FLAG((tty),CIBAUD) |
tty | 156 | include/linux/tty.h | #define C_CRTSCTS(tty) _C_FLAG((tty),CRTSCTS) |
tty | 158 | include/linux/tty.h | #define L_ISIG(tty) _L_FLAG((tty),ISIG) |
tty | 159 | include/linux/tty.h | #define L_ICANON(tty) _L_FLAG((tty),ICANON) |
tty | 160 | include/linux/tty.h | #define L_XCASE(tty) _L_FLAG((tty),XCASE) |
tty | 161 | include/linux/tty.h | #define L_ECHO(tty) _L_FLAG((tty),ECHO) |
tty | 162 | include/linux/tty.h | #define L_ECHOE(tty) _L_FLAG((tty),ECHOE) |
tty | 163 | include/linux/tty.h | #define L_ECHOK(tty) _L_FLAG((tty),ECHOK) |
tty | 164 | include/linux/tty.h | #define L_ECHONL(tty) _L_FLAG((tty),ECHONL) |
tty | 165 | include/linux/tty.h | #define L_NOFLSH(tty) _L_FLAG((tty),NOFLSH) |
tty | 166 | include/linux/tty.h | #define L_TOSTOP(tty) _L_FLAG((tty),TOSTOP) |
tty | 167 | include/linux/tty.h | #define L_ECHOCTL(tty) _L_FLAG((tty),ECHOCTL) |
tty | 168 | include/linux/tty.h | #define L_ECHOPRT(tty) _L_FLAG((tty),ECHOPRT) |
tty | 169 | include/linux/tty.h | #define L_ECHOKE(tty) _L_FLAG((tty),ECHOKE) |
tty | 170 | include/linux/tty.h | #define L_FLUSHO(tty) _L_FLAG((tty),FLUSHO) |
tty | 171 | include/linux/tty.h | #define L_PENDIN(tty) _L_FLAG((tty),PENDIN) |
tty | 172 | include/linux/tty.h | #define L_IEXTEN(tty) _L_FLAG((tty),IEXTEN) |
tty | 251 | include/linux/tty.h | #define TTY_WRITE_FLUSH(tty) tty_write_flush((tty)) |
tty | 277 | include/linux/tty.h | extern int tty_paranoia_check(struct tty_struct *tty, dev_t device, |
tty | 279 | include/linux/tty.h | extern char *_tty_name(struct tty_struct *tty, char *buf); |
tty | 280 | include/linux/tty.h | extern char *tty_name(struct tty_struct *tty); |
tty | 281 | include/linux/tty.h | extern void wait_until_sent(struct tty_struct * tty, int timeout); |
tty | 282 | include/linux/tty.h | extern int tty_check_change(struct tty_struct * tty); |
tty | 283 | include/linux/tty.h | extern void stop_tty(struct tty_struct * tty); |
tty | 284 | include/linux/tty.h | extern void start_tty(struct tty_struct * tty); |
tty | 287 | include/linux/tty.h | extern int tty_read_raw_data(struct tty_struct *tty, unsigned char *bufp, |
tty | 292 | include/linux/tty.h | extern int tty_signal(int sig, struct tty_struct *tty); |
tty | 293 | include/linux/tty.h | extern void tty_hangup(struct tty_struct * tty); |
tty | 294 | include/linux/tty.h | extern void tty_vhangup(struct tty_struct * tty); |
tty | 297 | include/linux/tty.h | extern void do_SAK(struct tty_struct *tty); |
tty | 304 | include/linux/tty.h | extern int n_tty_ioctl(struct tty_struct * tty, struct file * file, |
tty | 309 | include/linux/tty.h | extern int rs_open(struct tty_struct * tty, struct file * filp); |
tty | 313 | include/linux/tty.h | extern int pty_open(struct tty_struct * tty, struct file * filp); |
tty | 317 | include/linux/tty.h | extern int con_open(struct tty_struct * tty, struct file * filp); |
tty | 324 | include/linux/tty.h | extern int vt_ioctl(struct tty_struct *tty, struct file * file, |
tty | 124 | include/linux/tty_driver.h | int (*open)(struct tty_struct * tty, struct file * filp); |
tty | 125 | include/linux/tty_driver.h | void (*close)(struct tty_struct * tty, struct file * filp); |
tty | 126 | include/linux/tty_driver.h | int (*write)(struct tty_struct * tty, int from_user, |
tty | 128 | include/linux/tty_driver.h | void (*put_char)(struct tty_struct *tty, unsigned char ch); |
tty | 129 | include/linux/tty_driver.h | void (*flush_chars)(struct tty_struct *tty); |
tty | 130 | include/linux/tty_driver.h | int (*write_room)(struct tty_struct *tty); |
tty | 131 | include/linux/tty_driver.h | int (*chars_in_buffer)(struct tty_struct *tty); |
tty | 132 | include/linux/tty_driver.h | int (*ioctl)(struct tty_struct *tty, struct file * file, |
tty | 134 | include/linux/tty_driver.h | void (*set_termios)(struct tty_struct *tty, struct termios * old); |
tty | 135 | include/linux/tty_driver.h | void (*throttle)(struct tty_struct * tty); |
tty | 136 | include/linux/tty_driver.h | void (*unthrottle)(struct tty_struct * tty); |
tty | 137 | include/linux/tty_driver.h | void (*stop)(struct tty_struct *tty); |
tty | 138 | include/linux/tty_driver.h | void (*start)(struct tty_struct *tty); |
tty | 139 | include/linux/tty_driver.h | void (*hangup)(struct tty_struct *tty); |
tty | 140 | include/linux/tty_driver.h | void (*flush_buffer)(struct tty_struct *tty); |
tty | 141 | include/linux/tty_driver.h | void (*set_ldisc)(struct tty_struct *tty); |
tty | 10 | include/linux/tty_flip.h | _INLINE_ void tty_insert_flip_char(struct tty_struct *tty, |
tty | 13 | include/linux/tty_flip.h | if (tty->flip.count++ >= TTY_FLIPBUF_SIZE) |
tty | 15 | include/linux/tty_flip.h | *tty->flip.flag_buf_ptr++ = flag; |
tty | 16 | include/linux/tty_flip.h | *tty->flip.char_buf_ptr++ = ch; |
tty | 19 | include/linux/tty_flip.h | _INLINE_ void tty_schedule_flip(struct tty_struct *tty) |
tty | 21 | include/linux/tty_flip.h | queue_task(&tty->flip.tqueue, &tq_timer); |
tty | 20 | include/linux/tty_ldisc.h | void (*flush_buffer)(struct tty_struct *tty); |
tty | 21 | include/linux/tty_ldisc.h | int (*chars_in_buffer)(struct tty_struct *tty); |
tty | 22 | include/linux/tty_ldisc.h | int (*read)(struct tty_struct * tty, struct file * file, |
tty | 24 | include/linux/tty_ldisc.h | int (*write)(struct tty_struct * tty, struct file * file, |
tty | 26 | include/linux/tty_ldisc.h | int (*ioctl)(struct tty_struct * tty, struct file * file, |
tty | 28 | include/linux/tty_ldisc.h | void (*set_termios)(struct tty_struct *tty, struct termios * old); |
tty | 29 | include/linux/tty_ldisc.h | int (*select)(struct tty_struct * tty, struct inode * inode, |
tty | 529 | kernel/sys.c | current->tty = NULL; |