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;
tty147fs/proc/array.c(*p)->tty);
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 do_SAK(struct tty_struct *tty);
tty292include/linux/tty.hextern void rs_write(struct tty_struct * tty);
tty293include/linux/tty.hextern void con_write(struct tty_struct * tty);
tty297include/linux/tty.hextern int  rs_open(struct tty_struct * tty, struct file * filp);
tty302include/linux/tty.hextern int  pty_open(struct tty_struct * tty, struct file * filp);
tty306include/linux/tty.hextern int con_open(struct tty_struct * tty, struct file * filp);
tty313include/linux/tty.hextern int vt_ioctl(struct tty_struct *tty, struct file * file,
tty595kernel/chr_drv/console.cstatic void respond_string(char * p, int currcons, struct tty_struct * tty)
tty598kernel/chr_drv/console.cput_tty_queue(*p, &tty->read_q);
tty601kernel/chr_drv/console.cTTY_READ_FLUSH(tty);
tty604kernel/chr_drv/console.cstatic void respond_num(unsigned int n, int currcons, struct tty_struct * tty)
tty614kernel/chr_drv/console.cput_tty_queue(buff[i], &tty->read_q);
tty619kernel/chr_drv/console.cstatic void cursor_report(int currcons, struct tty_struct * tty)
tty621kernel/chr_drv/console.cput_tty_queue('\033', &tty->read_q);
tty622kernel/chr_drv/console.cput_tty_queue('[', &tty->read_q);
tty623kernel/chr_drv/console.crespond_num(y + (decom ? top+1 : 1), currcons, tty);
tty624kernel/chr_drv/console.cput_tty_queue(';', &tty->read_q);
tty625kernel/chr_drv/console.crespond_num(x+1, currcons, tty);
tty626kernel/chr_drv/console.cput_tty_queue('R', &tty->read_q);
tty627kernel/chr_drv/console.cTTY_READ_FLUSH(tty);
tty630kernel/chr_drv/console.cstatic inline void status_report(int currcons, struct tty_struct * tty)
tty632kernel/chr_drv/console.crespond_string("\033[0n", currcons, tty);  /* Terminal ok */
tty635kernel/chr_drv/console.cstatic inline void respond_ID(int currcons, struct tty_struct * tty)
tty637kernel/chr_drv/console.crespond_string(VT102ID, currcons, tty);
tty889kernel/chr_drv/console.cvoid con_write(struct tty_struct * tty)
tty894kernel/chr_drv/console.cwake_up_interruptible(&tty->write_q.proc_list);
tty895kernel/chr_drv/console.ccurrcons = tty->line - 1;
tty900kernel/chr_drv/console.cwhile (!tty->stopped &&  (c = get_tty_queue(&tty->write_q)) >= 0) {
tty989kernel/chr_drv/console.crespond_ID(currcons,tty);
tty1050kernel/chr_drv/console.cstatus_report(currcons,tty);
tty1052kernel/chr_drv/console.ccursor_report(currcons,tty);
tty1114kernel/chr_drv/console.crespond_ID(currcons,tty);
tty1482kernel/chr_drv/console.cint con_open(struct tty_struct *tty, struct file * filp)
tty1484kernel/chr_drv/console.ctty->write = con_write;
tty1485kernel/chr_drv/console.ctty->ioctl = vt_ioctl;
tty38kernel/chr_drv/keyboard.cstatic struct tty_struct * tty = NULL;
tty68kernel/chr_drv/keyboard.ctty = TTY_TABLE(0);
tty96kernel/chr_drv/keyboard.cif (!(vc_kbd_flag(kbd,VC_REPEAT) && tty &&
tty97kernel/chr_drv/keyboard.c(L_ECHO(tty) ||
tty98kernel/chr_drv/keyboard.c(EMPTY(&tty->secondary) &&
tty99kernel/chr_drv/keyboard.cEMPTY(&tty->read_q))))) {
tty118kernel/chr_drv/keyboard.cif (!tty)
tty120kernel/chr_drv/keyboard.cqp = &tty->read_q;
tty135kernel/chr_drv/keyboard.cif (!tty)
tty137kernel/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.cif (tty->link->session > 0)
tty33kernel/chr_drv/pty.ckill_sl(tty->link->session,SIGHUP,1);
tty62kernel/chr_drv/pty.cstatic void pty_write(struct tty_struct * tty)
tty64kernel/chr_drv/pty.cif (tty->link)
tty65kernel/chr_drv/pty.cpty_copy(tty,tty->link);
tty68kernel/chr_drv/pty.cint pty_open(struct tty_struct *tty, struct file * filp)
tty70kernel/chr_drv/pty.cif (!tty || !tty->link)
tty72kernel/chr_drv/pty.ctty->write = tty->link->write = pty_write;
tty73kernel/chr_drv/pty.ctty->close = tty->link->close = pty_close;
tty74kernel/chr_drv/pty.cwake_up_interruptible(&tty->read_q.proc_list);
tty77kernel/chr_drv/pty.cwhile (!tty->link->count && !(current->signal & ~current->blocked))
tty78kernel/chr_drv/pty.cinterruptible_sleep_on(&tty->link->read_q.proc_list);
tty79kernel/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.c&& info->tty->session > 0)
tty406kernel/chr_drv/serial.ckill_sl(info->tty->session,SIGHUP,1);
tty408kernel/chr_drv/serial.cif (info->tty->termios->c_cflag & CRTSCTS)
tty409kernel/chr_drv/serial.cinfo->tty->stopped = !(status & UART_MSR_CTS);
tty411kernel/chr_drv/serial.cif (!info->tty->stopped)
tty434kernel/chr_drv/serial.cif (!info || !info->tty || !info->port)
tty514kernel/chr_drv/serial.cif (!info->tty) {  /* check that we haven't closed it.. */
tty521kernel/chr_drv/serial.cTTY_READ_FLUSH(info->tty);
tty524kernel/chr_drv/serial.cwake_up_interruptible(&info->tty->write_q.proc_list);
tty527kernel/chr_drv/serial.cif (info->tty->session > 0)
tty528kernel/chr_drv/serial.ckill_sl(info->tty->session,SIGHUP,1);
tty531kernel/chr_drv/serial.cflush_input(info->tty);
tty532kernel/chr_drv/serial.cflush_output(info->tty);
tty533kernel/chr_drv/serial.cif (info->tty->pgrp > 0)
tty534kernel/chr_drv/serial.ckill_pg(info->tty->pgrp,SIGINT,1);
tty537kernel/chr_drv/serial.cdo_SAK(info->tty);
tty553kernel/chr_drv/serial.crs_write(info->tty);
tty580kernel/chr_drv/serial.cvoid rs_write(struct tty_struct * tty)
tty584kernel/chr_drv/serial.cif (!tty || tty->stopped || EMPTY(&tty->write_q))
tty586kernel/chr_drv/serial.cinfo = rs_table + DEV_TO_SL(tty->line);
tty599kernel/chr_drv/serial.cstatic void rs_throttle(struct tty_struct * tty, int status)
tty605kernel/chr_drv/serial.cprintk("throttle tty%d: %d (%d, %d)....\n", DEV_TO_SL(tty->line),
tty606kernel/chr_drv/serial.cstatus, LEFT(&tty->read_q), LEFT(&tty->secondary));
tty610kernel/chr_drv/serial.cinfo = rs_table + DEV_TO_SL(tty->line);
tty611kernel/chr_drv/serial.cif (tty->termios->c_iflag & IXOFF) {
tty612kernel/chr_drv/serial.cinfo->x_char = STOP_CHAR(tty);
tty620kernel/chr_drv/serial.cinfo = rs_table + DEV_TO_SL(tty->line);
tty621kernel/chr_drv/serial.cif (tty->termios->c_iflag & IXOFF) {
tty626kernel/chr_drv/serial.cinfo->x_char = START_CHAR(tty);
tty643kernel/chr_drv/serial.cstatic void rs_close(struct tty_struct *tty, struct file * filp)
tty649kernel/chr_drv/serial.cline = DEV_TO_SL(tty->line);
tty652kernel/chr_drv/serial.ctty->stopped = 0;    /* Force flush to succeed */
tty653kernel/chr_drv/serial.cwait_until_sent(tty);
tty666kernel/chr_drv/serial.cinfo->tty = 0;
tty748kernel/chr_drv/serial.cif (info->tty && !(info->tty->termios->c_cflag & HUPCL))
tty768kernel/chr_drv/serial.cif (!info->tty || !info->tty->termios)
tty770kernel/chr_drv/serial.ccflag = info->tty->termios->c_cflag;
tty971kernel/chr_drv/serial.cstatic int rs_ioctl(struct tty_struct *tty, struct file * file,
tty977kernel/chr_drv/serial.cline = DEV_TO_SL(tty->line);
tty984kernel/chr_drv/serial.cwait_until_sent(tty);
tty1015kernel/chr_drv/serial.cint rs_open(struct tty_struct *tty, struct file * filp)
tty1022kernel/chr_drv/serial.cif (!tty)
tty1024kernel/chr_drv/serial.cif (tty->count > 1)
tty1026kernel/chr_drv/serial.cline = DEV_TO_SL(tty->line);
tty1032kernel/chr_drv/serial.cinfo->tty = tty;
tty1033kernel/chr_drv/serial.ctty->write = rs_write;
tty1034kernel/chr_drv/serial.ctty->close = rs_close;
tty1035kernel/chr_drv/serial.ctty->ioctl = rs_ioctl;
tty1036kernel/chr_drv/serial.ctty->throttle = rs_throttle;
tty1248kernel/chr_drv/serial.cinfo->tty = 0;
tty56kernel/chr_drv/tty_io.cstatic int initialize_tty_struct(struct tty_struct *tty, int line);
tty86kernel/chr_drv/tty_io.cvoid tty_write_flush(struct tty_struct * tty)
tty88kernel/chr_drv/tty_io.cif (!tty->write || EMPTY(&tty->write_q))
tty90kernel/chr_drv/tty_io.cif (set_bit(TTY_WRITE_BUSY,&tty->flags))
tty92kernel/chr_drv/tty_io.ctty->write(tty);
tty93kernel/chr_drv/tty_io.cif (clear_bit(TTY_WRITE_BUSY,&tty->flags))
tty97kernel/chr_drv/tty_io.cvoid tty_read_flush(struct tty_struct * tty)
tty99kernel/chr_drv/tty_io.cif (!tty || EMPTY(&tty->read_q))
tty101kernel/chr_drv/tty_io.cif (set_bit(TTY_READ_BUSY, &tty->flags))
tty103kernel/chr_drv/tty_io.ccopy_to_cooked(tty);
tty104kernel/chr_drv/tty_io.cif (clear_bit(TTY_READ_BUSY, &tty->flags))
tty122kernel/chr_drv/tty_io.cvoid copy_to_cooked(struct tty_struct * tty)
tty126kernel/chr_drv/tty_io.cif (!tty) {
tty130kernel/chr_drv/tty_io.cif (!tty->write) {
tty132kernel/chr_drv/tty_io.ctty->line);
tty140kernel/chr_drv/tty_io.cc = LEFT(&tty->secondary);
tty141kernel/chr_drv/tty_io.cif (tty->throttle && (c < SQ_THRESHOLD_LW)
tty142kernel/chr_drv/tty_io.c&& !set_bit(TTY_SQ_THROTTLED, &tty->flags))
tty143kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_SQ_FULL);
tty146kernel/chr_drv/tty_io.cc = get_tty_queue(&tty->read_q);
tty149kernel/chr_drv/tty_io.cif (I_STRP(tty))
tty152kernel/chr_drv/tty_io.cif (I_CRNL(tty))
tty154kernel/chr_drv/tty_io.celse if (I_NOCR(tty))
tty156kernel/chr_drv/tty_io.c} else if (c==10 && I_NLCR(tty))
tty158kernel/chr_drv/tty_io.cif (I_UCLC(tty))
tty160kernel/chr_drv/tty_io.cif (L_CANON(tty)) {
tty161kernel/chr_drv/tty_io.cif ((KILL_CHAR(tty) != __DISABLED_CHAR) &&
tty162kernel/chr_drv/tty_io.c(c==KILL_CHAR(tty))) {
tty164kernel/chr_drv/tty_io.cwhile(!(EMPTY(&tty->secondary) ||
tty165kernel/chr_drv/tty_io.c(c=LAST(&tty->secondary))==10 ||
tty166kernel/chr_drv/tty_io.c((EOF_CHAR(tty) != __DISABLED_CHAR) &&
tty167kernel/chr_drv/tty_io.c(c==EOF_CHAR(tty))))) {
tty168kernel/chr_drv/tty_io.cif (L_ECHO(tty)) {
tty170kernel/chr_drv/tty_io.cput_tty_queue(8, &tty->write_q);
tty171kernel/chr_drv/tty_io.cput_tty_queue(' ', &tty->write_q);
tty172kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty174kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty175kernel/chr_drv/tty_io.cput_tty_queue(' ',&tty->write_q);
tty176kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty178kernel/chr_drv/tty_io.cDEC(tty->secondary.head);
tty182kernel/chr_drv/tty_io.cif ((ERASE_CHAR(tty) != __DISABLED_CHAR) &&
tty183kernel/chr_drv/tty_io.c(c==ERASE_CHAR(tty))) {
tty184kernel/chr_drv/tty_io.cif (EMPTY(&tty->secondary) ||
tty185kernel/chr_drv/tty_io.c(c=LAST(&tty->secondary))==10 ||
tty186kernel/chr_drv/tty_io.c((EOF_CHAR(tty) != __DISABLED_CHAR) &&
tty187kernel/chr_drv/tty_io.c(c==EOF_CHAR(tty))))
tty189kernel/chr_drv/tty_io.cif (L_ECHO(tty)) {
tty191kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty192kernel/chr_drv/tty_io.cput_tty_queue(' ',&tty->write_q);
tty193kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty195kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty196kernel/chr_drv/tty_io.cput_tty_queue(32,&tty->write_q);
tty197kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty199kernel/chr_drv/tty_io.cDEC(tty->secondary.head);
tty203kernel/chr_drv/tty_io.cif (I_IXON(tty)) {
tty204kernel/chr_drv/tty_io.cif ((STOP_CHAR(tty) != __DISABLED_CHAR) &&
tty205kernel/chr_drv/tty_io.c(c==STOP_CHAR(tty))) {
tty206kernel/chr_drv/tty_io.ctty->status_changed = 1;
tty207kernel/chr_drv/tty_io.ctty->ctrl_status |= TIOCPKT_STOP;
tty208kernel/chr_drv/tty_io.ctty->stopped=1;
tty211kernel/chr_drv/tty_io.cif (((I_IXANY(tty)) && tty->stopped) ||
tty212kernel/chr_drv/tty_io.c((START_CHAR(tty) != __DISABLED_CHAR) &&
tty213kernel/chr_drv/tty_io.c(c==START_CHAR(tty)))) {
tty214kernel/chr_drv/tty_io.ctty->status_changed = 1;
tty215kernel/chr_drv/tty_io.ctty->ctrl_status |= TIOCPKT_START;
tty216kernel/chr_drv/tty_io.ctty->stopped=0;
tty220kernel/chr_drv/tty_io.cif (L_ISIG(tty)) {
tty221kernel/chr_drv/tty_io.cif ((INTR_CHAR(tty) != __DISABLED_CHAR) &&
tty222kernel/chr_drv/tty_io.c(c==INTR_CHAR(tty))) {
tty223kernel/chr_drv/tty_io.ckill_pg(tty->pgrp, SIGINT, 1);
tty224kernel/chr_drv/tty_io.cflush_input(tty);
tty227kernel/chr_drv/tty_io.cif ((QUIT_CHAR(tty) != __DISABLED_CHAR) &&
tty228kernel/chr_drv/tty_io.c(c==QUIT_CHAR(tty))) {
tty229kernel/chr_drv/tty_io.ckill_pg(tty->pgrp, SIGQUIT, 1);
tty230kernel/chr_drv/tty_io.cflush_input(tty);
tty233kernel/chr_drv/tty_io.cif ((SUSPEND_CHAR(tty) != __DISABLED_CHAR) &&
tty234kernel/chr_drv/tty_io.c(c==SUSPEND_CHAR(tty))) {
tty235kernel/chr_drv/tty_io.cif (!is_orphaned_pgrp(tty->pgrp))
tty236kernel/chr_drv/tty_io.ckill_pg(tty->pgrp, SIGTSTP, 1);
tty240kernel/chr_drv/tty_io.cif (c==10 || (EOF_CHAR(tty) != __DISABLED_CHAR &&
tty241kernel/chr_drv/tty_io.cc==EOF_CHAR(tty)))
tty242kernel/chr_drv/tty_io.ctty->secondary.data++;
tty243kernel/chr_drv/tty_io.cif ((c==10) && (L_ECHO(tty) || (L_CANON(tty) && L_ECHONL(tty)))) {
tty244kernel/chr_drv/tty_io.cput_tty_queue(10,&tty->write_q);
tty245kernel/chr_drv/tty_io.cput_tty_queue(13,&tty->write_q);
tty246kernel/chr_drv/tty_io.c} else if (L_ECHO(tty)) {
tty247kernel/chr_drv/tty_io.cif (c<32 && L_ECHOCTL(tty)) {
tty248kernel/chr_drv/tty_io.cput_tty_queue('^',&tty->write_q);
tty249kernel/chr_drv/tty_io.cput_tty_queue(c+64, &tty->write_q);
tty251kernel/chr_drv/tty_io.cput_tty_queue(c, &tty->write_q);
tty253kernel/chr_drv/tty_io.cput_tty_queue(c, &tty->secondary);
tty255kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty);
tty256kernel/chr_drv/tty_io.cif (!EMPTY(&tty->secondary))
tty257kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->secondary.proc_list);
tty258kernel/chr_drv/tty_io.cif (tty->write_q.proc_list && LEFT(&tty->write_q) > TTY_BUF_SIZE/2)
tty259kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->write_q.proc_list);
tty260kernel/chr_drv/tty_io.cif (tty->throttle && (LEFT(&tty->read_q) >= RQ_THRESHOLD_HW)
tty261kernel/chr_drv/tty_io.c&& !clear_bit(TTY_RQ_THROTTLED, &tty->flags))
tty262kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_RQ_AVAIL);
tty263kernel/chr_drv/tty_io.cif (tty->throttle && (LEFT(&tty->secondary) >= SQ_THRESHOLD_HW)
tty264kernel/chr_drv/tty_io.c&& !clear_bit(TTY_SQ_THROTTLED, &tty->flags))
tty265kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_SQ_AVAIL);
tty277kernel/chr_drv/tty_io.cstatic void wait_for_canon_input(struct tty_struct * tty)
tty279kernel/chr_drv/tty_io.cif (!available_canon_input(tty)) {
tty282kernel/chr_drv/tty_io.c__wait_for_canon_input(tty);
tty286kernel/chr_drv/tty_io.cstatic int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr)
tty293kernel/chr_drv/tty_io.cif (L_CANON(tty))
tty296kernel/chr_drv/tty_io.ctime = 10L*tty->termios->c_cc[VTIME];
tty297kernel/chr_drv/tty_io.cminimum = tty->termios->c_cc[VMIN];
tty311kernel/chr_drv/tty_io.cif (L_CANON(tty)) {
tty312kernel/chr_drv/tty_io.cif (!available_canon_input(tty))
tty315kernel/chr_drv/tty_io.c} else if (L_CANON(tty)) {
tty316kernel/chr_drv/tty_io.cwait_for_canon_input(tty);
tty324kernel/chr_drv/tty_io.cif (tty->packet && tty->link && tty->link->status_changed) {
tty325kernel/chr_drv/tty_io.cput_fs_byte (tty->link->ctrl_status, b);
tty326kernel/chr_drv/tty_io.ctty->link->status_changed = 0;
tty331kernel/chr_drv/tty_io.cif (tty->packet) {
tty339kernel/chr_drv/tty_io.cadd_wait_queue(&tty->secondary.proc_list, &wait);
tty341kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty342kernel/chr_drv/tty_io.cif (tty->link)
tty343kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty344kernel/chr_drv/tty_io.cwhile (nr > 0 && ((c = get_tty_queue(&tty->secondary)) >= 0)) {
tty345kernel/chr_drv/tty_io.cif ((EOF_CHAR(tty) != __DISABLED_CHAR &&
tty346kernel/chr_drv/tty_io.cc==EOF_CHAR(tty)) || c==10)
tty347kernel/chr_drv/tty_io.ctty->secondary.data--;
tty348kernel/chr_drv/tty_io.cif ((EOF_CHAR(tty) != __DISABLED_CHAR &&
tty349kernel/chr_drv/tty_io.cc==EOF_CHAR(tty)) && L_CANON(tty))
tty355kernel/chr_drv/tty_io.cif (c==10 && L_CANON(tty))
tty358kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->read_q.proc_list);
tty363kernel/chr_drv/tty_io.cif (tty->throttle && (LEFT(&tty->secondary) >= SQ_THRESHOLD_HW)
tty364kernel/chr_drv/tty_io.c&& !clear_bit(TTY_SQ_THROTTLED, &tty->flags))
tty365kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_SQ_AVAIL);
tty370kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty372kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty373kernel/chr_drv/tty_io.cif (tty->link)
tty374kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty375kernel/chr_drv/tty_io.cif (!EMPTY(&tty->secondary))
tty378kernel/chr_drv/tty_io.cif (EMPTY(&tty->secondary))
tty382kernel/chr_drv/tty_io.cremove_wait_queue(&tty->secondary.proc_list, &wait);
tty383kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty384kernel/chr_drv/tty_io.cif (tty->link && tty->link->write)
tty385kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty390kernel/chr_drv/tty_io.cif (tty->packet) {
tty405kernel/chr_drv/tty_io.cstatic void __wait_for_canon_input(struct tty_struct * tty)
tty409kernel/chr_drv/tty_io.cadd_wait_queue(&tty->secondary.proc_list, &wait);
tty412kernel/chr_drv/tty_io.cif (available_canon_input(tty))
tty419kernel/chr_drv/tty_io.cremove_wait_queue(&tty->secondary.proc_list, &wait);
tty422kernel/chr_drv/tty_io.cstatic int available_canon_input(struct tty_struct * tty)
tty424kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty425kernel/chr_drv/tty_io.cif (tty->link)
tty426kernel/chr_drv/tty_io.cif (tty->link->count)
tty427kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty430kernel/chr_drv/tty_io.cif (FULL(&tty->read_q))
tty432kernel/chr_drv/tty_io.cif (tty->secondary.data)
tty437kernel/chr_drv/tty_io.cstatic int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr)
tty446kernel/chr_drv/tty_io.cadd_wait_queue(&tty->write_q.proc_list, &wait);
tty450kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count) {
tty455kernel/chr_drv/tty_io.cif (FULL(&tty->write_q)) {
tty456kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty);
tty457kernel/chr_drv/tty_io.cif (FULL(&tty->write_q))
tty463kernel/chr_drv/tty_io.cwhile (nr>0 && !FULL(&tty->write_q)) {
tty465kernel/chr_drv/tty_io.cif (O_POST(tty)) {
tty466kernel/chr_drv/tty_io.cif (c=='\r' && O_CRNL(tty))
tty468kernel/chr_drv/tty_io.celse if (c=='\n' && O_NLRET(tty))
tty470kernel/chr_drv/tty_io.cif (c=='\n' && O_NLCR(tty) &&
tty471kernel/chr_drv/tty_io.c!set_bit(TTY_CR_PENDING,&tty->flags)) {
tty472kernel/chr_drv/tty_io.cput_tty_queue(13,&tty->write_q);
tty475kernel/chr_drv/tty_io.cif (O_LCUC(tty))
tty479kernel/chr_drv/tty_io.cclear_bit(TTY_CR_PENDING,&tty->flags);
tty480kernel/chr_drv/tty_io.cput_tty_queue(c,&tty->write_q);
tty485kernel/chr_drv/tty_io.cremove_wait_queue(&tty->write_q.proc_list, &wait);
tty486kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty);
tty489kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty499kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty507kernel/chr_drv/tty_io.ctty = TTY_TABLE(dev);
tty508kernel/chr_drv/tty_io.cif (!tty)
tty510kernel/chr_drv/tty_io.cif (MINOR(inode->i_rdev) && (tty->pgrp > 0) &&
tty511kernel/chr_drv/tty_io.c(current->tty == dev) &&
tty512kernel/chr_drv/tty_io.c(tty->pgrp != current->pgrp))
tty519kernel/chr_drv/tty_io.ci = read_chan(tty,file,buf,count);
tty528kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty537kernel/chr_drv/tty_io.ctty = redirect;
tty539kernel/chr_drv/tty_io.ctty = TTY_TABLE(dev);
tty540kernel/chr_drv/tty_io.cif (!tty || !tty->write)
tty543kernel/chr_drv/tty_io.cL_TOSTOP(tty) && (tty->pgrp > 0) &&
tty544kernel/chr_drv/tty_io.c(current->tty == dev) && (tty->pgrp != current->pgrp)) {
tty545kernel/chr_drv/tty_io.cif (is_orphaned_pgrp(tty->pgrp))
tty552kernel/chr_drv/tty_io.ci = write_chan(tty,file,buf,count);
tty576kernel/chr_drv/tty_io.cstruct tty_struct *tty, *o_tty;
tty581kernel/chr_drv/tty_io.cdev = current->tty;
tty592kernel/chr_drv/tty_io.ctty = o_tty = NULL;
tty593kernel/chr_drv/tty_io.ctty = tty_table[dev];
tty594kernel/chr_drv/tty_io.cif (!tty) {
tty595kernel/chr_drv/tty_io.ctty = (struct tty_struct *) get_free_page(GFP_KERNEL);
tty601kernel/chr_drv/tty_io.cif (tty)
tty602kernel/chr_drv/tty_io.cfree_page((unsigned long) tty);
tty603kernel/chr_drv/tty_io.ctty = tty_table[dev];
tty605kernel/chr_drv/tty_io.cif (!tty)
tty607kernel/chr_drv/tty_io.cretval = initialize_tty_struct(tty, dev);
tty609kernel/chr_drv/tty_io.cfree_page((unsigned long) tty);
tty612kernel/chr_drv/tty_io.ctty_table[dev] = tty;
tty615kernel/chr_drv/tty_io.ctty->count++;      /* bump count to preserve tty */
tty629kernel/chr_drv/tty_io.ctty->count--;
tty634kernel/chr_drv/tty_io.ctty->count--;
tty641kernel/chr_drv/tty_io.ctty->link = o_tty;        
tty642kernel/chr_drv/tty_io.co_tty->link = tty;
tty645kernel/chr_drv/tty_io.cif (tty->count > 1) {
tty646kernel/chr_drv/tty_io.ctty->count--;
tty649kernel/chr_drv/tty_io.cif (tty->link)
tty650kernel/chr_drv/tty_io.ctty->link->count++;
tty655kernel/chr_drv/tty_io.ctty->status_changed = 0;
tty656kernel/chr_drv/tty_io.ctty->ctrl_status = 0;
tty657kernel/chr_drv/tty_io.ctty->packet = 0;
tty661kernel/chr_drv/tty_io.ccurrent->tty<0 &&
tty662kernel/chr_drv/tty_io.ctty->session==0) {
tty663kernel/chr_drv/tty_io.ccurrent->tty = dev;
tty664kernel/chr_drv/tty_io.ctty->session = current->session;
tty665kernel/chr_drv/tty_io.ctty->pgrp = current->pgrp;
tty667kernel/chr_drv/tty_io.cif (tty->open)
tty668kernel/chr_drv/tty_io.cretval = tty->open(tty, filp);
tty672kernel/chr_drv/tty_io.ctty->count--;
tty673kernel/chr_drv/tty_io.cif (IS_A_PTY_MASTER(dev) && tty->link)
tty674kernel/chr_drv/tty_io.ctty->link->count--;
tty687kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty699kernel/chr_drv/tty_io.ctty = tty_table[dev];
tty700kernel/chr_drv/tty_io.cif (!tty) {
tty704kernel/chr_drv/tty_io.cif (IS_A_PTY_MASTER(dev) && tty->link)  {
tty705kernel/chr_drv/tty_io.cif (--tty->link->count < 0) {
tty707kernel/chr_drv/tty_io.cdev, tty->count);  
tty708kernel/chr_drv/tty_io.ctty->link->count = 0;
tty711kernel/chr_drv/tty_io.cif (--tty->count < 0) {
tty713kernel/chr_drv/tty_io.cdev, tty->count);
tty714kernel/chr_drv/tty_io.ctty->count = 0;
tty716kernel/chr_drv/tty_io.cif (tty->count)
tty718kernel/chr_drv/tty_io.cif (tty->close)
tty719kernel/chr_drv/tty_io.ctty->close(tty, filp);
tty720kernel/chr_drv/tty_io.cif (tty == redirect)
tty722kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count && (tty->link == redirect))
tty724kernel/chr_drv/tty_io.cif (tty->link) {
tty725kernel/chr_drv/tty_io.cif (tty->link->count)
tty763kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty771kernel/chr_drv/tty_io.ctty = TTY_TABLE(dev);
tty772kernel/chr_drv/tty_io.cif (!tty) {
tty778kernel/chr_drv/tty_io.cif (L_CANON(tty)) {
tty779kernel/chr_drv/tty_io.cif (available_canon_input(tty))
tty781kernel/chr_drv/tty_io.c} else if (!EMPTY(&tty->secondary))
tty783kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty787kernel/chr_drv/tty_io.cif (tty->packet && tty->link &&
tty788kernel/chr_drv/tty_io.ctty->link->status_changed)
tty791kernel/chr_drv/tty_io.cselect_wait(&tty->secondary.proc_list, wait);
tty794kernel/chr_drv/tty_io.cif (!FULL(&tty->write_q))
tty796kernel/chr_drv/tty_io.cselect_wait(&tty->write_q.proc_list, wait);
tty799kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty830kernel/chr_drv/tty_io.cvoid do_SAK( struct tty_struct *tty)
tty833kernel/chr_drv/tty_io.cint line = tty->line;
tty834kernel/chr_drv/tty_io.cint session = tty->session;
tty838kernel/chr_drv/tty_io.cflush_input(tty);
tty839kernel/chr_drv/tty_io.cflush_output(tty);
tty843kernel/chr_drv/tty_io.cif (((*p)->tty == line) ||
tty863kernel/chr_drv/tty_io.cstatic int initialize_tty_struct(struct tty_struct *tty, int line)
tty867kernel/chr_drv/tty_io.cmemset(tty, 0, sizeof(struct tty_struct));
tty868kernel/chr_drv/tty_io.ctty->line = line;
tty869kernel/chr_drv/tty_io.ctty->pgrp = -1;
tty870kernel/chr_drv/tty_io.ctty->winsize.ws_row = 24;
tty871kernel/chr_drv/tty_io.ctty->winsize.ws_col = 80;
tty899kernel/chr_drv/tty_io.ctty->termios = tty_termios[line];
tty902kernel/chr_drv/tty_io.ctty->open = con_open;
tty903kernel/chr_drv/tty_io.ctty->winsize.ws_row = video_num_lines;
tty904kernel/chr_drv/tty_io.ctty->winsize.ws_col = video_num_columns;
tty906kernel/chr_drv/tty_io.ctty->open = rs_open;
tty908kernel/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);
tty398kernel/chr_drv/tty_ioctl.credirect = tty;
tty408kernel/chr_drv/tty_ioctl.cif (MINOR(file->f_rdev) != current->tty)
tty410kernel/chr_drv/tty_ioctl.ccurrent->tty = -1;
tty412kernel/chr_drv/tty_ioctl.cif (tty->pgrp > 0)
tty413kernel/chr_drv/tty_ioctl.ckill_pg(tty->pgrp, SIGHUP, 0);
tty414kernel/chr_drv/tty_ioctl.ctty->pgrp = -1;
tty415kernel/chr_drv/tty_ioctl.ctty->session = 0;
tty427kernel/chr_drv/tty_ioctl.ctty->packet = 1;
tty429kernel/chr_drv/tty_ioctl.ctty->packet = 0;
tty434kernel/chr_drv/tty_ioctl.cif (tty->ioctl)
tty435kernel/chr_drv/tty_ioctl.creturn (tty->ioctl)(tty, file, cmd, arg);
tty66kernel/chr_drv/vt.cint vt_ioctl(struct tty_struct *tty, struct file * file,
tty73kernel/chr_drv/vt.cconsole = tty->line - 1;
tty156kernel/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;