taglinefilesource code
tty484fs/open.cstruct tty_struct *tty;
tty492fs/open.cif (current->tty < 0)
tty508fs/open.cMINOR(filep->f_rdev) == MINOR (current->tty))) {
tty530fs/open.cif (*process && (*process)->tty == current->tty && *process != current) {
tty531fs/open.c(*process)->tty = -1;
tty535fs/open.ctty = TTY_TABLE(MINOR(current->tty));
tty536fs/open.cif (tty) {
tty537fs/open.ctty->session = 0;
tty538fs/open.ctty->pgrp = -1;
tty539fs/open.ccurrent->tty = -1;
tty172fs/proc/array.c(*p)->tty,
tty173fs/proc/array.c((*p)->tty == -1) ? -1 :
tty174fs/proc/array.ctty_table[(*p)->tty]->pgrp,
tty192include/linux/sched.hint tty;    /* -1 if no tty, so it must be signed */
tty43include/linux/serial.hstruct tty_struct   *tty;
tty127include/linux/tty.h#define INTR_CHAR(tty) ((tty)->termios->c_cc[VINTR])
tty128include/linux/tty.h#define QUIT_CHAR(tty) ((tty)->termios->c_cc[VQUIT])
tty129include/linux/tty.h#define ERASE_CHAR(tty) ((tty)->termios->c_cc[VERASE])
tty130include/linux/tty.h#define KILL_CHAR(tty) ((tty)->termios->c_cc[VKILL])
tty131include/linux/tty.h#define EOF_CHAR(tty) ((tty)->termios->c_cc[VEOF])
tty132include/linux/tty.h#define START_CHAR(tty) ((tty)->termios->c_cc[VSTART])
tty133include/linux/tty.h#define STOP_CHAR(tty) ((tty)->termios->c_cc[VSTOP])
tty134include/linux/tty.h#define SUSPEND_CHAR(tty) ((tty)->termios->c_cc[VSUSP])
tty136include/linux/tty.h#define _L_FLAG(tty,f)  ((tty)->termios->c_lflag & f)
tty137include/linux/tty.h#define _I_FLAG(tty,f)  ((tty)->termios->c_iflag & f)
tty138include/linux/tty.h#define _O_FLAG(tty,f)  ((tty)->termios->c_oflag & f)
tty140include/linux/tty.h#define L_CANON(tty)  _L_FLAG((tty),ICANON)
tty141include/linux/tty.h#define L_ISIG(tty)  _L_FLAG((tty),ISIG)
tty142include/linux/tty.h#define L_ECHO(tty)  _L_FLAG((tty),ECHO)
tty143include/linux/tty.h#define L_ECHOE(tty)  _L_FLAG((tty),ECHOE)
tty144include/linux/tty.h#define L_ECHOK(tty)  _L_FLAG((tty),ECHOK)
tty145include/linux/tty.h#define L_ECHONL(tty)  _L_FLAG((tty),ECHONL)
tty146include/linux/tty.h#define L_ECHOCTL(tty)  _L_FLAG((tty),ECHOCTL)
tty147include/linux/tty.h#define L_ECHOKE(tty)  _L_FLAG((tty),ECHOKE)
tty148include/linux/tty.h#define L_TOSTOP(tty)  _L_FLAG((tty),TOSTOP)
tty150include/linux/tty.h#define I_UCLC(tty)  _I_FLAG((tty),IUCLC)
tty151include/linux/tty.h#define I_NLCR(tty)  _I_FLAG((tty),INLCR)
tty152include/linux/tty.h#define I_CRNL(tty)  _I_FLAG((tty),ICRNL)
tty153include/linux/tty.h#define I_NOCR(tty)  _I_FLAG((tty),IGNCR)
tty154include/linux/tty.h#define I_IXON(tty)  _I_FLAG((tty),IXON)
tty155include/linux/tty.h#define I_IXANY(tty)  _I_FLAG((tty),IXANY)
tty156include/linux/tty.h#define I_STRP(tty)  _I_FLAG((tty),ISTRIP)
tty158include/linux/tty.h#define O_POST(tty)  _O_FLAG((tty),OPOST)
tty159include/linux/tty.h#define O_NLCR(tty)  _O_FLAG((tty),ONLCR)
tty160include/linux/tty.h#define O_CRNL(tty)  _O_FLAG((tty),OCRNL)
tty161include/linux/tty.h#define O_NLRET(tty)  _O_FLAG((tty),ONLRET)
tty162include/linux/tty.h#define O_LCUC(tty)  _O_FLAG((tty),OLCUC)
tty164include/linux/tty.h#define C_SPEED(tty)  ((tty)->termios->c_cflag & CBAUD)
tty165include/linux/tty.h#define C_HUP(tty)  (C_SPEED((tty)) == B0)
tty191include/linux/tty.hint  (*open)(struct tty_struct * tty, struct file * filp);
tty192include/linux/tty.hvoid (*close)(struct tty_struct * tty, struct file * filp);
tty193include/linux/tty.hvoid (*write)(struct tty_struct * tty);
tty194include/linux/tty.hint  (*ioctl)(struct tty_struct *tty, struct file * file,
tty196include/linux/tty.hvoid (*throttle)(struct tty_struct * tty, int status);
tty248include/linux/tty.h#define TTY_WRITE_FLUSH(tty) tty_write_flush((tty))
tty249include/linux/tty.h#define TTY_READ_FLUSH(tty) tty_read_flush((tty))
tty277include/linux/tty.hextern void flush_input(struct tty_struct * tty);
tty278include/linux/tty.hextern void flush_output(struct tty_struct * tty);
tty279include/linux/tty.hextern void wait_until_sent(struct tty_struct * tty);
tty280include/linux/tty.hextern void copy_to_cooked(struct tty_struct * tty);
tty285include/linux/tty.hextern int tty_signal(int sig, struct tty_struct *tty);
tty288include/linux/tty.hextern void tty_hangup(struct tty_struct * tty);
tty289include/linux/tty.hextern void do_SAK(struct tty_struct *tty);
tty293include/linux/tty.hextern void rs_write(struct tty_struct * tty);
tty294include/linux/tty.hextern void con_write(struct tty_struct * tty);
tty298include/linux/tty.hextern int  rs_open(struct tty_struct * tty, struct file * filp);
tty303include/linux/tty.hextern int  pty_open(struct tty_struct * tty, struct file * filp);
tty307include/linux/tty.hextern int con_open(struct tty_struct * tty, struct file * filp);
tty314include/linux/tty.hextern int vt_ioctl(struct tty_struct *tty, struct file * file,
tty598kernel/chr_drv/console.cstatic void respond_string(char * p, int currcons, struct tty_struct * tty)
tty601kernel/chr_drv/console.cput_tty_queue(*p, &tty->read_q);
tty604kernel/chr_drv/console.cTTY_READ_FLUSH(tty);
tty607kernel/chr_drv/console.cstatic void respond_num(unsigned int n, int currcons, struct tty_struct * tty)
tty617kernel/chr_drv/console.cput_tty_queue(buff[i], &tty->read_q);
tty622kernel/chr_drv/console.cstatic void cursor_report(int currcons, struct tty_struct * tty)
tty624kernel/chr_drv/console.cput_tty_queue('\033', &tty->read_q);
tty625kernel/chr_drv/console.cput_tty_queue('[', &tty->read_q);
tty626kernel/chr_drv/console.crespond_num(y + (decom ? top+1 : 1), currcons, tty);
tty627kernel/chr_drv/console.cput_tty_queue(';', &tty->read_q);
tty628kernel/chr_drv/console.crespond_num(x+1, currcons, tty);
tty629kernel/chr_drv/console.cput_tty_queue('R', &tty->read_q);
tty630kernel/chr_drv/console.cTTY_READ_FLUSH(tty);
tty633kernel/chr_drv/console.cstatic inline void status_report(int currcons, struct tty_struct * tty)
tty635kernel/chr_drv/console.crespond_string("\033[0n", currcons, tty);  /* Terminal ok */
tty638kernel/chr_drv/console.cstatic inline void respond_ID(int currcons, struct tty_struct * tty)
tty640kernel/chr_drv/console.crespond_string(VT102ID, currcons, tty);
tty892kernel/chr_drv/console.cvoid con_write(struct tty_struct * tty)
tty897kernel/chr_drv/console.cwake_up_interruptible(&tty->write_q.proc_list);
tty898kernel/chr_drv/console.ccurrcons = tty->line - 1;
tty903kernel/chr_drv/console.cwhile (!tty->stopped &&  (c = get_tty_queue(&tty->write_q)) >= 0) {
tty992kernel/chr_drv/console.crespond_ID(currcons,tty);
tty1053kernel/chr_drv/console.cstatus_report(currcons,tty);
tty1055kernel/chr_drv/console.ccursor_report(currcons,tty);
tty1117kernel/chr_drv/console.crespond_ID(currcons,tty);
tty1496kernel/chr_drv/console.cint con_open(struct tty_struct *tty, struct file * filp)
tty1498kernel/chr_drv/console.ctty->write = con_write;
tty1499kernel/chr_drv/console.ctty->ioctl = vt_ioctl;
tty1500kernel/chr_drv/console.cif (tty->line > NR_CONSOLES)
tty40kernel/chr_drv/keyboard.cstatic struct tty_struct * tty = NULL;
tty68kernel/chr_drv/keyboard.ctty = TTY_TABLE(0);
tty97kernel/chr_drv/keyboard.cif (!(vc_kbd_flag(kbd,VC_REPEAT) && tty &&
tty98kernel/chr_drv/keyboard.c(L_ECHO(tty) ||
tty99kernel/chr_drv/keyboard.c(EMPTY(&tty->secondary) &&
tty100kernel/chr_drv/keyboard.cEMPTY(&tty->read_q)))))
tty115kernel/chr_drv/keyboard.cif (!tty)
tty117kernel/chr_drv/keyboard.cqp = &tty->read_q;
tty132kernel/chr_drv/keyboard.cif (!tty)
tty134kernel/chr_drv/keyboard.cqp = &tty->read_q;
tty23kernel/chr_drv/pty.cstatic void pty_close(struct tty_struct * tty, struct file * filp)
tty25kernel/chr_drv/pty.cif (!tty)
tty27kernel/chr_drv/pty.cwake_up_interruptible(&tty->read_q.proc_list);
tty28kernel/chr_drv/pty.cif (!tty->link)
tty30kernel/chr_drv/pty.cwake_up_interruptible(&tty->link->write_q.proc_list);
tty31kernel/chr_drv/pty.cif (IS_A_PTY_MASTER(tty->line))
tty32kernel/chr_drv/pty.ctty_hangup(tty->link);
tty60kernel/chr_drv/pty.cstatic void pty_write(struct tty_struct * tty)
tty62kernel/chr_drv/pty.cif (tty->link)
tty63kernel/chr_drv/pty.cpty_copy(tty,tty->link);
tty66kernel/chr_drv/pty.cint pty_open(struct tty_struct *tty, struct file * filp)
tty68kernel/chr_drv/pty.cif (!tty || !tty->link)
tty70kernel/chr_drv/pty.ctty->write = tty->link->write = pty_write;
tty71kernel/chr_drv/pty.ctty->close = tty->link->close = pty_close;
tty72kernel/chr_drv/pty.cwake_up_interruptible(&tty->read_q.proc_list);
tty75kernel/chr_drv/pty.cwhile (!tty->link->count && !(current->signal & ~current->blocked))
tty76kernel/chr_drv/pty.cinterruptible_sleep_on(&tty->link->read_q.proc_list);
tty77kernel/chr_drv/pty.cif (!tty->link->count)
tty159kernel/chr_drv/serial.cstatic void rs_throttle(struct tty_struct * tty, int status);
tty212kernel/chr_drv/serial.cif (!info || !info->tty || !info->port)
tty214kernel/chr_drv/serial.ccflag = info->tty->termios->c_cflag;
tty215kernel/chr_drv/serial.ciflag = info->tty->termios->c_iflag;
tty221kernel/chr_drv/serial.cqueue = &info->tty->read_q;
tty263kernel/chr_drv/serial.c&& !set_bit(TTY_RQ_THROTTLED, &info->tty->flags)) 
tty264kernel/chr_drv/serial.crs_throttle(info->tty, TTY_THROTTLE_RQ_FULL);
tty268kernel/chr_drv/serial.c!info->tty->stopped) {
tty269kernel/chr_drv/serial.cqueue = &info->tty->write_q;
tty314kernel/chr_drv/serial.cif (info->tty->stopped) {
tty316kernel/chr_drv/serial.cinfo->tty->stopped = 0;
tty320kernel/chr_drv/serial.cinfo->tty->stopped = !(status & UART_MSR_CTS);
tty339kernel/chr_drv/serial.cstruct tty_queue * queue = &info->tty->write_q;
tty342kernel/chr_drv/serial.cif (info->tty->stopped)
tty353kernel/chr_drv/serial.cwhile (count-- && !info->tty->stopped) {
tty375kernel/chr_drv/serial.cstruct tty_queue * queue = &info->tty->read_q;
tty403kernel/chr_drv/serial.cif (!(info->tty->termios->c_cflag & CLOCAL)) {
tty405kernel/chr_drv/serial.ctty_hangup(info->tty);
tty407kernel/chr_drv/serial.cif (info->tty->termios->c_cflag & CRTSCTS)
tty408kernel/chr_drv/serial.cinfo->tty->stopped = !(status & UART_MSR_CTS);
tty410kernel/chr_drv/serial.cif (!info->tty->stopped)
tty433kernel/chr_drv/serial.cif (!info || !info->tty || !info->port)
tty513kernel/chr_drv/serial.cif (!info->tty) {  /* check that we haven't closed it.. */
tty520kernel/chr_drv/serial.cTTY_READ_FLUSH(info->tty);
tty523kernel/chr_drv/serial.cwake_up_interruptible(&info->tty->write_q.proc_list);
tty526kernel/chr_drv/serial.ctty_hangup(info->tty);
tty528kernel/chr_drv/serial.cflush_input(info->tty);
tty529kernel/chr_drv/serial.cflush_output(info->tty);
tty530kernel/chr_drv/serial.cif (info->tty->pgrp > 0)
tty531kernel/chr_drv/serial.ckill_pg(info->tty->pgrp,SIGINT,1);
tty534kernel/chr_drv/serial.cdo_SAK(info->tty);
tty550kernel/chr_drv/serial.crs_write(info->tty);
tty577kernel/chr_drv/serial.cvoid rs_write(struct tty_struct * tty)
tty581kernel/chr_drv/serial.cif (!tty || tty->stopped || EMPTY(&tty->write_q))
tty583kernel/chr_drv/serial.cinfo = rs_table + DEV_TO_SL(tty->line);
tty596kernel/chr_drv/serial.cstatic void rs_throttle(struct tty_struct * tty, int status)
tty602kernel/chr_drv/serial.cprintk("throttle tty%d: %d (%d, %d)....\n", DEV_TO_SL(tty->line),
tty603kernel/chr_drv/serial.cstatus, LEFT(&tty->read_q), LEFT(&tty->secondary));
tty607kernel/chr_drv/serial.cinfo = rs_table + DEV_TO_SL(tty->line);
tty608kernel/chr_drv/serial.cif (tty->termios->c_iflag & IXOFF) {
tty609kernel/chr_drv/serial.cinfo->x_char = STOP_CHAR(tty);
tty617kernel/chr_drv/serial.cinfo = rs_table + DEV_TO_SL(tty->line);
tty618kernel/chr_drv/serial.cif (tty->termios->c_iflag & IXOFF) {
tty623kernel/chr_drv/serial.cinfo->x_char = START_CHAR(tty);
tty640kernel/chr_drv/serial.cstatic void rs_close(struct tty_struct *tty, struct file * filp)
tty646kernel/chr_drv/serial.cline = DEV_TO_SL(tty->line);
tty649kernel/chr_drv/serial.ctty->stopped = 0;    /* Force flush to succeed */
tty650kernel/chr_drv/serial.cwait_until_sent(tty);
tty663kernel/chr_drv/serial.cinfo->tty = 0;
tty745kernel/chr_drv/serial.cif (info->tty && !(info->tty->termios->c_cflag & HUPCL))
tty765kernel/chr_drv/serial.cif (!info->tty || !info->tty->termios)
tty767kernel/chr_drv/serial.ccflag = info->tty->termios->c_cflag;
tty968kernel/chr_drv/serial.cstatic int rs_ioctl(struct tty_struct *tty, struct file * file,
tty974kernel/chr_drv/serial.cline = DEV_TO_SL(tty->line);
tty981kernel/chr_drv/serial.cwait_until_sent(tty);
tty1012kernel/chr_drv/serial.cint rs_open(struct tty_struct *tty, struct file * filp)
tty1019kernel/chr_drv/serial.cif (!tty)
tty1021kernel/chr_drv/serial.cif (tty->count > 1)
tty1023kernel/chr_drv/serial.cline = DEV_TO_SL(tty->line);
tty1029kernel/chr_drv/serial.cinfo->tty = tty;
tty1030kernel/chr_drv/serial.ctty->write = rs_write;
tty1031kernel/chr_drv/serial.ctty->close = rs_close;
tty1032kernel/chr_drv/serial.ctty->ioctl = rs_ioctl;
tty1033kernel/chr_drv/serial.ctty->throttle = rs_throttle;
tty1245kernel/chr_drv/serial.cinfo->tty = 0;
tty57kernel/chr_drv/tty_io.cstatic int initialize_tty_struct(struct tty_struct *tty, int line);
tty92kernel/chr_drv/tty_io.cvoid tty_write_flush(struct tty_struct * tty)
tty94kernel/chr_drv/tty_io.cif (!tty->write || EMPTY(&tty->write_q))
tty96kernel/chr_drv/tty_io.cif (set_bit(TTY_WRITE_BUSY,&tty->flags))
tty98kernel/chr_drv/tty_io.ctty->write(tty);
tty99kernel/chr_drv/tty_io.cif (clear_bit(TTY_WRITE_BUSY,&tty->flags))
tty103kernel/chr_drv/tty_io.cvoid tty_read_flush(struct tty_struct * tty)
tty105kernel/chr_drv/tty_io.cif (!tty || EMPTY(&tty->read_q))
tty107kernel/chr_drv/tty_io.cif (set_bit(TTY_READ_BUSY, &tty->flags))
tty109kernel/chr_drv/tty_io.ccopy_to_cooked(tty);
tty110kernel/chr_drv/tty_io.cif (clear_bit(TTY_READ_BUSY, &tty->flags))
tty158kernel/chr_drv/tty_io.cvoid tty_hangup(struct tty_struct * tty)
tty163kernel/chr_drv/tty_io.cif (!tty)
tty165kernel/chr_drv/tty_io.cdev = 0x0400 + tty->line;
tty176kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->secondary.proc_list);
tty177kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->read_q.proc_list);
tty178kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->write_q.proc_list);
tty179kernel/chr_drv/tty_io.cif (tty->session > 0)
tty180kernel/chr_drv/tty_io.ckill_sl(tty->session,SIGHUP,1);
tty343kernel/chr_drv/tty_io.cvoid copy_to_cooked(struct tty_struct * tty)
tty347kernel/chr_drv/tty_io.cif (!tty) {
tty351kernel/chr_drv/tty_io.cif (!tty->write) {
tty353kernel/chr_drv/tty_io.ctty->line);
tty361kernel/chr_drv/tty_io.cc = LEFT(&tty->secondary);
tty362kernel/chr_drv/tty_io.cif (tty->throttle && (c < SQ_THRESHOLD_LW)
tty363kernel/chr_drv/tty_io.c&& !set_bit(TTY_SQ_THROTTLED, &tty->flags))
tty364kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_SQ_FULL);
tty367kernel/chr_drv/tty_io.cc = get_tty_queue(&tty->read_q);
tty370kernel/chr_drv/tty_io.cif (I_STRP(tty))
tty373kernel/chr_drv/tty_io.cif (I_CRNL(tty))
tty375kernel/chr_drv/tty_io.celse if (I_NOCR(tty))
tty377kernel/chr_drv/tty_io.c} else if (c==10 && I_NLCR(tty))
tty379kernel/chr_drv/tty_io.cif (I_UCLC(tty))
tty381kernel/chr_drv/tty_io.cif (L_CANON(tty)) {
tty382kernel/chr_drv/tty_io.cif ((KILL_CHAR(tty) != __DISABLED_CHAR) &&
tty383kernel/chr_drv/tty_io.c(c==KILL_CHAR(tty))) {
tty385kernel/chr_drv/tty_io.cwhile(!(EMPTY(&tty->secondary) ||
tty386kernel/chr_drv/tty_io.c(c=LAST(&tty->secondary))==10 ||
tty387kernel/chr_drv/tty_io.c((EOF_CHAR(tty) != __DISABLED_CHAR) &&
tty388kernel/chr_drv/tty_io.c(c==EOF_CHAR(tty))))) {
tty389kernel/chr_drv/tty_io.cif (L_ECHO(tty)) {
tty391kernel/chr_drv/tty_io.cput_tty_queue(8, &tty->write_q);
tty392kernel/chr_drv/tty_io.cput_tty_queue(' ', &tty->write_q);
tty393kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty395kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty396kernel/chr_drv/tty_io.cput_tty_queue(' ',&tty->write_q);
tty397kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty399kernel/chr_drv/tty_io.cDEC(tty->secondary.head);
tty403kernel/chr_drv/tty_io.cif ((ERASE_CHAR(tty) != __DISABLED_CHAR) &&
tty404kernel/chr_drv/tty_io.c(c==ERASE_CHAR(tty))) {
tty405kernel/chr_drv/tty_io.cif (EMPTY(&tty->secondary) ||
tty406kernel/chr_drv/tty_io.c(c=LAST(&tty->secondary))==10 ||
tty407kernel/chr_drv/tty_io.c((EOF_CHAR(tty) != __DISABLED_CHAR) &&
tty408kernel/chr_drv/tty_io.c(c==EOF_CHAR(tty))))
tty410kernel/chr_drv/tty_io.cif (L_ECHO(tty)) {
tty412kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty413kernel/chr_drv/tty_io.cput_tty_queue(' ',&tty->write_q);
tty414kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty416kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty417kernel/chr_drv/tty_io.cput_tty_queue(32,&tty->write_q);
tty418kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty420kernel/chr_drv/tty_io.cDEC(tty->secondary.head);
tty424kernel/chr_drv/tty_io.cif (I_IXON(tty)) {
tty425kernel/chr_drv/tty_io.cif ((STOP_CHAR(tty) != __DISABLED_CHAR) &&
tty426kernel/chr_drv/tty_io.c(c==STOP_CHAR(tty))) {
tty427kernel/chr_drv/tty_io.ctty->status_changed = 1;
tty428kernel/chr_drv/tty_io.ctty->ctrl_status |= TIOCPKT_STOP;
tty429kernel/chr_drv/tty_io.ctty->stopped=1;
tty432kernel/chr_drv/tty_io.cif (((I_IXANY(tty)) && tty->stopped) ||
tty433kernel/chr_drv/tty_io.c((START_CHAR(tty) != __DISABLED_CHAR) &&
tty434kernel/chr_drv/tty_io.c(c==START_CHAR(tty)))) {
tty435kernel/chr_drv/tty_io.ctty->status_changed = 1;
tty436kernel/chr_drv/tty_io.ctty->ctrl_status |= TIOCPKT_START;
tty437kernel/chr_drv/tty_io.ctty->stopped=0;
tty441kernel/chr_drv/tty_io.cif (L_ISIG(tty)) {
tty442kernel/chr_drv/tty_io.cif ((INTR_CHAR(tty) != __DISABLED_CHAR) &&
tty443kernel/chr_drv/tty_io.c(c==INTR_CHAR(tty))) {
tty444kernel/chr_drv/tty_io.ckill_pg(tty->pgrp, SIGINT, 1);
tty445kernel/chr_drv/tty_io.cflush_input(tty);
tty448kernel/chr_drv/tty_io.cif ((QUIT_CHAR(tty) != __DISABLED_CHAR) &&
tty449kernel/chr_drv/tty_io.c(c==QUIT_CHAR(tty))) {
tty450kernel/chr_drv/tty_io.ckill_pg(tty->pgrp, SIGQUIT, 1);
tty451kernel/chr_drv/tty_io.cflush_input(tty);
tty454kernel/chr_drv/tty_io.cif ((SUSPEND_CHAR(tty) != __DISABLED_CHAR) &&
tty455kernel/chr_drv/tty_io.c(c==SUSPEND_CHAR(tty))) {
tty456kernel/chr_drv/tty_io.cif (!is_orphaned_pgrp(tty->pgrp))
tty457kernel/chr_drv/tty_io.ckill_pg(tty->pgrp, SIGTSTP, 1);
tty461kernel/chr_drv/tty_io.cif (c==10 || (EOF_CHAR(tty) != __DISABLED_CHAR &&
tty462kernel/chr_drv/tty_io.cc==EOF_CHAR(tty)))
tty463kernel/chr_drv/tty_io.ctty->secondary.data++;
tty464kernel/chr_drv/tty_io.cif ((c==10) && (L_ECHO(tty) || (L_CANON(tty) && L_ECHONL(tty)))) {
tty465kernel/chr_drv/tty_io.cput_tty_queue(10,&tty->write_q);
tty466kernel/chr_drv/tty_io.cput_tty_queue(13,&tty->write_q);
tty467kernel/chr_drv/tty_io.c} else if (L_ECHO(tty)) {
tty468kernel/chr_drv/tty_io.cif (c<32 && L_ECHOCTL(tty)) {
tty469kernel/chr_drv/tty_io.cput_tty_queue('^',&tty->write_q);
tty470kernel/chr_drv/tty_io.cput_tty_queue(c+64, &tty->write_q);
tty472kernel/chr_drv/tty_io.cput_tty_queue(c, &tty->write_q);
tty474kernel/chr_drv/tty_io.cput_tty_queue(c, &tty->secondary);
tty476kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty);
tty477kernel/chr_drv/tty_io.cif (!EMPTY(&tty->secondary))
tty478kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->secondary.proc_list);
tty479kernel/chr_drv/tty_io.cif (tty->write_q.proc_list && LEFT(&tty->write_q) > TTY_BUF_SIZE/2)
tty480kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->write_q.proc_list);
tty481kernel/chr_drv/tty_io.cif (tty->throttle && (LEFT(&tty->read_q) >= RQ_THRESHOLD_HW)
tty482kernel/chr_drv/tty_io.c&& !clear_bit(TTY_RQ_THROTTLED, &tty->flags))
tty483kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_RQ_AVAIL);
tty484kernel/chr_drv/tty_io.cif (tty->throttle && (LEFT(&tty->secondary) >= SQ_THRESHOLD_HW)
tty485kernel/chr_drv/tty_io.c&& !clear_bit(TTY_SQ_THROTTLED, &tty->flags))
tty486kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_SQ_AVAIL);
tty498kernel/chr_drv/tty_io.cstatic void wait_for_canon_input(struct file * file, struct tty_struct * tty)
tty500kernel/chr_drv/tty_io.cif (!available_canon_input(tty)) {
tty503kernel/chr_drv/tty_io.c__wait_for_canon_input(file, tty);
tty507kernel/chr_drv/tty_io.cstatic int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr)
tty514kernel/chr_drv/tty_io.cif (L_CANON(tty))
tty517kernel/chr_drv/tty_io.ctime = 10L*tty->termios->c_cc[VTIME];
tty518kernel/chr_drv/tty_io.cminimum = tty->termios->c_cc[VMIN];
tty532kernel/chr_drv/tty_io.cif (L_CANON(tty)) {
tty533kernel/chr_drv/tty_io.cif (!available_canon_input(tty))
tty536kernel/chr_drv/tty_io.c} else if (L_CANON(tty)) {
tty537kernel/chr_drv/tty_io.cwait_for_canon_input(file, tty);
tty545kernel/chr_drv/tty_io.cif (tty->packet && tty->link && tty->link->status_changed) {
tty546kernel/chr_drv/tty_io.cput_fs_byte (tty->link->ctrl_status, b);
tty547kernel/chr_drv/tty_io.ctty->link->status_changed = 0;
tty552kernel/chr_drv/tty_io.cif (tty->packet) {
tty560kernel/chr_drv/tty_io.cadd_wait_queue(&tty->secondary.proc_list, &wait);
tty562kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty563kernel/chr_drv/tty_io.cif (tty->link)
tty564kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty565kernel/chr_drv/tty_io.cwhile (nr > 0 && ((c = get_tty_queue(&tty->secondary)) >= 0)) {
tty566kernel/chr_drv/tty_io.cif ((EOF_CHAR(tty) != __DISABLED_CHAR &&
tty567kernel/chr_drv/tty_io.cc==EOF_CHAR(tty)) || c==10)
tty568kernel/chr_drv/tty_io.ctty->secondary.data--;
tty569kernel/chr_drv/tty_io.cif ((EOF_CHAR(tty) != __DISABLED_CHAR &&
tty570kernel/chr_drv/tty_io.cc==EOF_CHAR(tty)) && L_CANON(tty))
tty576kernel/chr_drv/tty_io.cif (c==10 && L_CANON(tty))
tty579kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->read_q.proc_list);
tty584kernel/chr_drv/tty_io.cif (tty->throttle && (LEFT(&tty->secondary) >= SQ_THRESHOLD_HW)
tty585kernel/chr_drv/tty_io.c&& !clear_bit(TTY_SQ_THROTTLED, &tty->flags))
tty586kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_SQ_AVAIL);
tty591kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty593kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty594kernel/chr_drv/tty_io.cif (tty->link)
tty595kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty596kernel/chr_drv/tty_io.cif (!EMPTY(&tty->secondary))
tty601kernel/chr_drv/tty_io.cif (EMPTY(&tty->secondary))
tty605kernel/chr_drv/tty_io.cremove_wait_queue(&tty->secondary.proc_list, &wait);
tty606kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty607kernel/chr_drv/tty_io.cif (tty->link && tty->link->write)
tty608kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty613kernel/chr_drv/tty_io.cif (tty->packet) {
tty628kernel/chr_drv/tty_io.cstatic void __wait_for_canon_input(struct file * file, struct tty_struct * tty)
tty632kernel/chr_drv/tty_io.cadd_wait_queue(&tty->secondary.proc_list, &wait);
tty635kernel/chr_drv/tty_io.cif (available_canon_input(tty))
tty644kernel/chr_drv/tty_io.cremove_wait_queue(&tty->secondary.proc_list, &wait);
tty647kernel/chr_drv/tty_io.cstatic int available_canon_input(struct tty_struct * tty)
tty649kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty650kernel/chr_drv/tty_io.cif (tty->link)
tty651kernel/chr_drv/tty_io.cif (tty->link->count)
tty652kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty655kernel/chr_drv/tty_io.cif (FULL(&tty->read_q))
tty657kernel/chr_drv/tty_io.cif (tty->secondary.data)
tty662kernel/chr_drv/tty_io.cstatic int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr)
tty671kernel/chr_drv/tty_io.cadd_wait_queue(&tty->write_q.proc_list, &wait);
tty677kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count) {
tty682kernel/chr_drv/tty_io.cif (FULL(&tty->write_q)) {
tty683kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty);
tty684kernel/chr_drv/tty_io.cif (FULL(&tty->write_q))
tty690kernel/chr_drv/tty_io.cwhile (nr>0 && !FULL(&tty->write_q)) {
tty692kernel/chr_drv/tty_io.cif (O_POST(tty)) {
tty693kernel/chr_drv/tty_io.cif (c=='\r' && O_CRNL(tty))
tty695kernel/chr_drv/tty_io.celse if (c=='\n' && O_NLRET(tty))
tty697kernel/chr_drv/tty_io.cif (c=='\n' && O_NLCR(tty) &&
tty698kernel/chr_drv/tty_io.c!set_bit(TTY_CR_PENDING,&tty->flags)) {
tty699kernel/chr_drv/tty_io.cput_tty_queue(13,&tty->write_q);
tty702kernel/chr_drv/tty_io.cif (O_LCUC(tty))
tty706kernel/chr_drv/tty_io.cclear_bit(TTY_CR_PENDING,&tty->flags);
tty707kernel/chr_drv/tty_io.cput_tty_queue(c,&tty->write_q);
tty712kernel/chr_drv/tty_io.cremove_wait_queue(&tty->write_q.proc_list, &wait);
tty713kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty);
tty716kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty726kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty734kernel/chr_drv/tty_io.ctty = TTY_TABLE(dev);
tty735kernel/chr_drv/tty_io.cif (!tty)
tty737kernel/chr_drv/tty_io.cif (MINOR(inode->i_rdev) && (tty->pgrp > 0) &&
tty738kernel/chr_drv/tty_io.c(current->tty == dev) &&
tty739kernel/chr_drv/tty_io.c(tty->pgrp != current->pgrp))
tty746kernel/chr_drv/tty_io.ci = read_chan(tty,file,buf,count);
tty755kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty765kernel/chr_drv/tty_io.ctty = redirect;
tty767kernel/chr_drv/tty_io.ctty = TTY_TABLE(dev);
tty768kernel/chr_drv/tty_io.cif (!tty || !tty->write)
tty770kernel/chr_drv/tty_io.cif (!is_console && L_TOSTOP(tty) && (tty->pgrp > 0) &&
tty771kernel/chr_drv/tty_io.c(current->tty == dev) && (tty->pgrp != current->pgrp)) {
tty779kernel/chr_drv/tty_io.ci = write_chan(tty,file,buf,count);
tty798kernel/chr_drv/tty_io.cstruct tty_struct *tty, *o_tty;
tty803kernel/chr_drv/tty_io.cdev = current->tty;
tty814kernel/chr_drv/tty_io.ctty = o_tty = NULL;
tty815kernel/chr_drv/tty_io.ctty = tty_table[dev];
tty816kernel/chr_drv/tty_io.cif (!tty) {
tty817kernel/chr_drv/tty_io.ctty = (struct tty_struct *) get_free_page(GFP_KERNEL);
tty823kernel/chr_drv/tty_io.cif (tty)
tty824kernel/chr_drv/tty_io.cfree_page((unsigned long) tty);
tty825kernel/chr_drv/tty_io.ctty = tty_table[dev];
tty827kernel/chr_drv/tty_io.cif (!tty)
tty829kernel/chr_drv/tty_io.cretval = initialize_tty_struct(tty, dev);
tty831kernel/chr_drv/tty_io.cfree_page((unsigned long) tty);
tty834kernel/chr_drv/tty_io.ctty_table[dev] = tty;
tty837kernel/chr_drv/tty_io.ctty->count++;      /* bump count to preserve tty */
tty851kernel/chr_drv/tty_io.ctty->count--;
tty856kernel/chr_drv/tty_io.ctty->count--;
tty863kernel/chr_drv/tty_io.ctty->link = o_tty;        
tty864kernel/chr_drv/tty_io.co_tty->link = tty;
tty867kernel/chr_drv/tty_io.cif (tty->count > 1) {
tty868kernel/chr_drv/tty_io.ctty->count--;
tty871kernel/chr_drv/tty_io.cif (tty->link)
tty872kernel/chr_drv/tty_io.ctty->link->count++;
tty877kernel/chr_drv/tty_io.ctty->status_changed = 0;
tty878kernel/chr_drv/tty_io.ctty->ctrl_status = 0;
tty879kernel/chr_drv/tty_io.ctty->packet = 0;
tty883kernel/chr_drv/tty_io.ccurrent->tty<0 &&
tty884kernel/chr_drv/tty_io.ctty->session==0) {
tty885kernel/chr_drv/tty_io.ccurrent->tty = dev;
tty886kernel/chr_drv/tty_io.ctty->session = current->session;
tty887kernel/chr_drv/tty_io.ctty->pgrp = current->pgrp;
tty889kernel/chr_drv/tty_io.cif (tty->open)
tty890kernel/chr_drv/tty_io.cretval = tty->open(tty, filp);
tty894kernel/chr_drv/tty_io.ctty->count--;
tty895kernel/chr_drv/tty_io.cif (IS_A_PTY_MASTER(dev) && tty->link)
tty896kernel/chr_drv/tty_io.ctty->link->count--;
tty909kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty921kernel/chr_drv/tty_io.ctty = tty_table[dev];
tty922kernel/chr_drv/tty_io.cif (!tty) {
tty926kernel/chr_drv/tty_io.cif (IS_A_PTY_MASTER(dev) && tty->link)  {
tty927kernel/chr_drv/tty_io.cif (--tty->link->count < 0) {
tty929kernel/chr_drv/tty_io.cdev, tty->count);  
tty930kernel/chr_drv/tty_io.ctty->link->count = 0;
tty933kernel/chr_drv/tty_io.cif (--tty->count < 0) {
tty935kernel/chr_drv/tty_io.cdev, tty->count);
tty936kernel/chr_drv/tty_io.ctty->count = 0;
tty938kernel/chr_drv/tty_io.cif (tty->count)
tty940kernel/chr_drv/tty_io.cif (tty->close)
tty941kernel/chr_drv/tty_io.ctty->close(tty, filp);
tty942kernel/chr_drv/tty_io.cif (tty == redirect)
tty944kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count && (tty->link == redirect))
tty946kernel/chr_drv/tty_io.cif (tty->link) {
tty947kernel/chr_drv/tty_io.cif (tty->link->count)
tty985kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty993kernel/chr_drv/tty_io.ctty = TTY_TABLE(dev);
tty994kernel/chr_drv/tty_io.cif (!tty) {
tty1000kernel/chr_drv/tty_io.cif (L_CANON(tty)) {
tty1001kernel/chr_drv/tty_io.cif (available_canon_input(tty))
tty1003kernel/chr_drv/tty_io.c} else if (!EMPTY(&tty->secondary))
tty1005kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty1009kernel/chr_drv/tty_io.cif (tty->packet && tty->link &&
tty1010kernel/chr_drv/tty_io.ctty->link->status_changed)
tty1013kernel/chr_drv/tty_io.cselect_wait(&tty->secondary.proc_list, wait);
tty1016kernel/chr_drv/tty_io.cif (!FULL(&tty->write_q))
tty1018kernel/chr_drv/tty_io.cselect_wait(&tty->write_q.proc_list, wait);
tty1021kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty1040kernel/chr_drv/tty_io.cvoid do_SAK( struct tty_struct *tty)
tty1043kernel/chr_drv/tty_io.cint line = tty->line;
tty1044kernel/chr_drv/tty_io.cint session = tty->session;
tty1048kernel/chr_drv/tty_io.cflush_input(tty);
tty1049kernel/chr_drv/tty_io.cflush_output(tty);
tty1053kernel/chr_drv/tty_io.cif (((*p)->tty == line) ||
tty1073kernel/chr_drv/tty_io.cstatic int initialize_tty_struct(struct tty_struct *tty, int line)
tty1077kernel/chr_drv/tty_io.cmemset(tty, 0, sizeof(struct tty_struct));
tty1078kernel/chr_drv/tty_io.ctty->line = line;
tty1079kernel/chr_drv/tty_io.ctty->pgrp = -1;
tty1080kernel/chr_drv/tty_io.ctty->winsize.ws_row = 24;
tty1081kernel/chr_drv/tty_io.ctty->winsize.ws_col = 80;
tty1109kernel/chr_drv/tty_io.ctty->termios = tty_termios[line];
tty1112kernel/chr_drv/tty_io.ctty->open = con_open;
tty1113kernel/chr_drv/tty_io.ctty->winsize.ws_row = video_num_lines;
tty1114kernel/chr_drv/tty_io.ctty->winsize.ws_col = video_num_columns;
tty1116kernel/chr_drv/tty_io.ctty->open = rs_open;
tty1118kernel/chr_drv/tty_io.ctty->open = pty_open;
tty33kernel/chr_drv/tty_ioctl.cvoid flush_input(struct tty_struct * tty)
tty35kernel/chr_drv/tty_ioctl.ctty->status_changed = 1;
tty36kernel/chr_drv/tty_ioctl.ctty->ctrl_status |= TIOCPKT_FLUSHREAD;
tty37kernel/chr_drv/tty_ioctl.cflush(&tty->read_q);
tty38kernel/chr_drv/tty_ioctl.cwake_up_interruptible(&tty->read_q.proc_list);
tty39kernel/chr_drv/tty_ioctl.cflush(&tty->secondary);
tty40kernel/chr_drv/tty_ioctl.ctty->secondary.data = 0;
tty42kernel/chr_drv/tty_ioctl.cif ((tty = tty->link) != NULL) {
tty43kernel/chr_drv/tty_ioctl.cflush(&tty->write_q);
tty44kernel/chr_drv/tty_ioctl.cwake_up_interruptible(&tty->write_q.proc_list);
tty48kernel/chr_drv/tty_ioctl.cvoid flush_output(struct tty_struct * tty)
tty50kernel/chr_drv/tty_ioctl.ctty->status_changed = 1;
tty51kernel/chr_drv/tty_ioctl.ctty->ctrl_status |= TIOCPKT_FLUSHWRITE;
tty52kernel/chr_drv/tty_ioctl.cflush(&tty->write_q);
tty53kernel/chr_drv/tty_ioctl.cwake_up_interruptible(&tty->write_q.proc_list);
tty54kernel/chr_drv/tty_ioctl.cif ((tty = tty->link) != NULL) {
tty55kernel/chr_drv/tty_ioctl.cflush(&tty->read_q);
tty56kernel/chr_drv/tty_ioctl.cwake_up_interruptible(&tty->read_q.proc_list);
tty57kernel/chr_drv/tty_ioctl.cflush(&tty->secondary);
tty58kernel/chr_drv/tty_ioctl.ctty->secondary.data = 0;
tty62kernel/chr_drv/tty_ioctl.cvoid wait_until_sent(struct tty_struct * tty)
tty65kernel/chr_drv/tty_ioctl.c!EMPTY(&tty->write_q)) {
tty66kernel/chr_drv/tty_ioctl.cTTY_WRITE_FLUSH(tty);
tty69kernel/chr_drv/tty_ioctl.cif (EMPTY(&tty->write_q))
tty72kernel/chr_drv/tty_ioctl.cinterruptible_sleep_on(&tty->write_q.proc_list);
tty106kernel/chr_drv/tty_ioctl.cstatic int get_termios(struct tty_struct * tty, struct termios * termios)
tty112kernel/chr_drv/tty_ioctl.cput_fs_byte( ((char *)tty->termios)[i] , i+(char *)termios );
tty116kernel/chr_drv/tty_ioctl.cstatic int set_termios(struct tty_struct * tty, struct termios * termios,
tty120kernel/chr_drv/tty_ioctl.cunsigned short old_cflag = tty->termios->c_cflag;
tty125kernel/chr_drv/tty_ioctl.cif ((current->tty == channel) &&
tty126kernel/chr_drv/tty_ioctl.c(tty->pgrp != current->pgrp)) {
tty135kernel/chr_drv/tty_ioctl.c((char *)tty->termios)[i]=get_fs_byte(i+(char *)termios);
tty136kernel/chr_drv/tty_ioctl.cif (IS_A_SERIAL(channel) && tty->termios->c_cflag != old_cflag)
tty142kernel/chr_drv/tty_ioctl.cif (IS_A_PTY_MASTER(channel)) tty->termios->c_lflag &= ~ECHO;
tty147kernel/chr_drv/tty_ioctl.cstatic int get_termio(struct tty_struct * tty, struct termio * termio)
tty153kernel/chr_drv/tty_ioctl.ctmp_termio.c_iflag = tty->termios->c_iflag;
tty154kernel/chr_drv/tty_ioctl.ctmp_termio.c_oflag = tty->termios->c_oflag;
tty155kernel/chr_drv/tty_ioctl.ctmp_termio.c_cflag = tty->termios->c_cflag;
tty156kernel/chr_drv/tty_ioctl.ctmp_termio.c_lflag = tty->termios->c_lflag;
tty157kernel/chr_drv/tty_ioctl.ctmp_termio.c_line = tty->termios->c_line;
tty159kernel/chr_drv/tty_ioctl.ctmp_termio.c_cc[i] = tty->termios->c_cc[i];
tty168kernel/chr_drv/tty_ioctl.cstatic int set_termio(struct tty_struct * tty, struct termio * termio,
tty173kernel/chr_drv/tty_ioctl.cunsigned short old_cflag = tty->termios->c_cflag;
tty175kernel/chr_drv/tty_ioctl.cif ((current->tty == channel) &&
tty176kernel/chr_drv/tty_ioctl.c(tty->pgrp > 0) &&
tty177kernel/chr_drv/tty_ioctl.c(tty->pgrp != current->pgrp)) {
tty190kernel/chr_drv/tty_ioctl.c~(tty->termios->c_iflag & IXON))
tty192kernel/chr_drv/tty_ioctl.ctty->status_changed = 1;
tty193kernel/chr_drv/tty_ioctl.ctty->ctrl_status |= TIOCPKT_DOSTOP;
tty197kernel/chr_drv/tty_ioctl.c(tty->termios->c_iflag & IXON))
tty199kernel/chr_drv/tty_ioctl.ctty->status_changed = 1;
tty200kernel/chr_drv/tty_ioctl.ctty->ctrl_status |= TIOCPKT_NOSTOP;
tty203kernel/chr_drv/tty_ioctl.c*(unsigned short *)&tty->termios->c_iflag = tmp_termio.c_iflag;
tty204kernel/chr_drv/tty_ioctl.c*(unsigned short *)&tty->termios->c_oflag = tmp_termio.c_oflag;
tty205kernel/chr_drv/tty_ioctl.c*(unsigned short *)&tty->termios->c_cflag = tmp_termio.c_cflag;
tty206kernel/chr_drv/tty_ioctl.c*(unsigned short *)&tty->termios->c_lflag = tmp_termio.c_lflag;
tty207kernel/chr_drv/tty_ioctl.ctty->termios->c_line = tmp_termio.c_line;
tty209kernel/chr_drv/tty_ioctl.ctty->termios->c_cc[i] = tmp_termio.c_cc[i];
tty210kernel/chr_drv/tty_ioctl.cif (IS_A_SERIAL(channel) && tty->termios->c_cflag != old_cflag)
tty215kernel/chr_drv/tty_ioctl.cstatic int set_window_size(struct tty_struct * tty, struct winsize * ws)
tty222kernel/chr_drv/tty_ioctl.ctmp = (char *) &tty->winsize;
tty232kernel/chr_drv/tty_ioctl.ckill_pg(tty->pgrp, SIGWINCH, 1);
tty236kernel/chr_drv/tty_ioctl.cstatic int get_window_size(struct tty_struct * tty, struct winsize * ws)
tty246kernel/chr_drv/tty_ioctl.cput_fs_byte(((char *) &tty->winsize)[i], tmp);
tty253kernel/chr_drv/tty_ioctl.cstruct tty_struct * tty;
tty265kernel/chr_drv/tty_ioctl.ctty = TTY_TABLE(dev);
tty266kernel/chr_drv/tty_ioctl.cif (!tty)
tty272kernel/chr_drv/tty_ioctl.ctermios_tty = tty;
tty282kernel/chr_drv/tty_ioctl.cflush_input(tty);
tty285kernel/chr_drv/tty_ioctl.cwait_until_sent(tty);
tty292kernel/chr_drv/tty_ioctl.cflush_input(tty);
tty295kernel/chr_drv/tty_ioctl.cwait_until_sent(tty); /* fallthrough */
tty301kernel/chr_drv/tty_ioctl.ctty->stopped = 1;
tty302kernel/chr_drv/tty_ioctl.cTTY_WRITE_FLUSH(tty);
tty305kernel/chr_drv/tty_ioctl.ctty->stopped = 0;
tty306kernel/chr_drv/tty_ioctl.cTTY_WRITE_FLUSH(tty);
tty309kernel/chr_drv/tty_ioctl.cif (STOP_CHAR(tty))
tty310kernel/chr_drv/tty_ioctl.cput_tty_queue(STOP_CHAR(tty),
tty311kernel/chr_drv/tty_ioctl.c&tty->write_q);
tty314kernel/chr_drv/tty_ioctl.cif (START_CHAR(tty))
tty315kernel/chr_drv/tty_ioctl.cput_tty_queue(START_CHAR(tty),
tty316kernel/chr_drv/tty_ioctl.c&tty->write_q);
tty322kernel/chr_drv/tty_ioctl.cflush_input(tty);
tty324kernel/chr_drv/tty_ioctl.cflush_output(tty);
tty326kernel/chr_drv/tty_ioctl.cflush_input(tty);
tty327kernel/chr_drv/tty_ioctl.cflush_output(tty);
tty342kernel/chr_drv/tty_ioctl.cif ((current->tty < 0) ||
tty343kernel/chr_drv/tty_ioctl.c(current->tty != termios_dev) ||
tty355kernel/chr_drv/tty_ioctl.cput_fs_long(CHARS(&tty->write_q),
tty360kernel/chr_drv/tty_ioctl.cif (L_CANON(tty) && !tty->secondary.data)
tty363kernel/chr_drv/tty_ioctl.cput_fs_long(CHARS(&tty->secondary),
tty369kernel/chr_drv/tty_ioctl.creturn get_window_size(tty,(struct winsize *) arg);
tty373kernel/chr_drv/tty_ioctl.creturn set_window_size(tty,(struct winsize *) arg);
tty402kernel/chr_drv/tty_ioctl.credirect = tty;
tty414kernel/chr_drv/tty_ioctl.cif (MINOR(file->f_rdev) != current->tty)
tty416kernel/chr_drv/tty_ioctl.ccurrent->tty = -1;
tty418kernel/chr_drv/tty_ioctl.cif (tty->pgrp > 0)
tty419kernel/chr_drv/tty_ioctl.ckill_pg(tty->pgrp, SIGHUP, 0);
tty420kernel/chr_drv/tty_ioctl.ctty->pgrp = -1;
tty421kernel/chr_drv/tty_ioctl.ctty->session = 0;
tty433kernel/chr_drv/tty_ioctl.ctty->packet = 1;
tty435kernel/chr_drv/tty_ioctl.ctty->packet = 0;
tty440kernel/chr_drv/tty_ioctl.cif (tty->ioctl)
tty441kernel/chr_drv/tty_ioctl.creturn (tty->ioctl)(tty, file, cmd, arg);
tty104kernel/chr_drv/vt.cint vt_ioctl(struct tty_struct *tty, struct file * file,
tty111kernel/chr_drv/vt.cconsole = tty->line - 1;
tty213kernel/chr_drv/vt.cflush_input(tty);
tty404kernel/exit.cstruct tty_struct *tty;
tty406kernel/exit.cif (current->tty >= 0) {
tty407kernel/exit.ctty = TTY_TABLE(current->tty);
tty408kernel/exit.cif (tty) {
tty409kernel/exit.cif (tty->pgrp > 0)
tty410kernel/exit.ckill_pg(tty->pgrp, SIGHUP, 1);
tty411kernel/exit.ctty->pgrp = -1;
tty412kernel/exit.ctty->session = 0;
tty417kernel/exit.c(*p)->tty = -1;
tty469kernel/sys.ccurrent->tty = -1;