taglinefilesource code
tty464fs/open.cstruct tty_struct *tty;
tty469fs/open.cif (current->tty < 0)
tty471fs/open.ctty = TTY_TABLE(MINOR(current->tty));
tty472fs/open.ctty_vhangup(tty);
tty201fs/proc/array.ctty_pgrp = (*p)->tty;
tty215fs/proc/array.c(*p)->tty,
tty190include/linux/sched.hint tty;    /* -1 if no tty, so it must be signed */
tty25include/linux/serial.hstruct tty_struct   *tty;
tty137include/linux/tty.h#define INTR_CHAR(tty) ((tty)->termios->c_cc[VINTR])
tty138include/linux/tty.h#define QUIT_CHAR(tty) ((tty)->termios->c_cc[VQUIT])
tty139include/linux/tty.h#define ERASE_CHAR(tty) ((tty)->termios->c_cc[VERASE])
tty140include/linux/tty.h#define KILL_CHAR(tty) ((tty)->termios->c_cc[VKILL])
tty141include/linux/tty.h#define WERASE_CHAR(tty) ((tty)->termios->c_cc[VWERASE])
tty142include/linux/tty.h#define EOF_CHAR(tty) ((tty)->termios->c_cc[VEOF])
tty143include/linux/tty.h#define START_CHAR(tty) ((tty)->termios->c_cc[VSTART])
tty144include/linux/tty.h#define STOP_CHAR(tty) ((tty)->termios->c_cc[VSTOP])
tty145include/linux/tty.h#define SUSPEND_CHAR(tty) ((tty)->termios->c_cc[VSUSP])
tty146include/linux/tty.h#define LNEXT_CHAR(tty)  ((tty)->termios->c_cc[VLNEXT])
tty148include/linux/tty.h#define _L_FLAG(tty,f)  ((tty)->termios->c_lflag & f)
tty149include/linux/tty.h#define _I_FLAG(tty,f)  ((tty)->termios->c_iflag & f)
tty150include/linux/tty.h#define _O_FLAG(tty,f)  ((tty)->termios->c_oflag & f)
tty151include/linux/tty.h#define _C_FLAG(tty,f)  ((tty)->termios->c_cflag & f)
tty153include/linux/tty.h#define L_CANON(tty)  _L_FLAG((tty),ICANON)
tty154include/linux/tty.h#define L_ISIG(tty)  _L_FLAG((tty),ISIG)
tty155include/linux/tty.h#define L_ECHO(tty)  _L_FLAG((tty),ECHO)
tty156include/linux/tty.h#define L_ECHOE(tty)  _L_FLAG((tty),ECHOE)
tty157include/linux/tty.h#define L_ECHOK(tty)  _L_FLAG((tty),ECHOK)
tty158include/linux/tty.h#define L_ECHONL(tty)  _L_FLAG((tty),ECHONL)
tty159include/linux/tty.h#define L_ECHOCTL(tty)  _L_FLAG((tty),ECHOCTL)
tty160include/linux/tty.h#define L_ECHOKE(tty)  _L_FLAG((tty),ECHOKE)
tty161include/linux/tty.h#define L_TOSTOP(tty)  _L_FLAG((tty),TOSTOP)
tty163include/linux/tty.h#define I_IGNBRK(tty)  _I_FLAG((tty),IGNBRK)
tty164include/linux/tty.h#define I_BRKINT(tty)  _I_FLAG((tty),BRKINT)
tty165include/linux/tty.h#define I_IGNPAR(tty)  _I_FLAG((tty),IGNPAR)
tty166include/linux/tty.h#define I_PARMRK(tty)  _I_FLAG((tty),PARMRK)
tty167include/linux/tty.h#define I_INPCK(tty)  _I_FLAG((tty),INPCK)
tty168include/linux/tty.h#define I_UCLC(tty)  _I_FLAG((tty),IUCLC)
tty169include/linux/tty.h#define I_NLCR(tty)  _I_FLAG((tty),INLCR)
tty170include/linux/tty.h#define I_CRNL(tty)  _I_FLAG((tty),ICRNL)
tty171include/linux/tty.h#define I_NOCR(tty)  _I_FLAG((tty),IGNCR)
tty172include/linux/tty.h#define I_IXON(tty)  _I_FLAG((tty),IXON)
tty173include/linux/tty.h#define I_IXANY(tty)  _I_FLAG((tty),IXANY)
tty174include/linux/tty.h#define I_STRP(tty)  _I_FLAG((tty),ISTRIP)
tty176include/linux/tty.h#define O_POST(tty)  _O_FLAG((tty),OPOST)
tty177include/linux/tty.h#define O_NLCR(tty)  _O_FLAG((tty),ONLCR)
tty178include/linux/tty.h#define O_CRNL(tty)  _O_FLAG((tty),OCRNL)
tty179include/linux/tty.h#define O_NLRET(tty)  _O_FLAG((tty),ONLRET)
tty180include/linux/tty.h#define O_LCUC(tty)  _O_FLAG((tty),OLCUC)
tty182include/linux/tty.h#define C_LOCAL(tty)  _C_FLAG((tty),CLOCAL)
tty183include/linux/tty.h#define C_RTSCTS(tty)  _C_FLAG((tty),CRTSCTS)
tty184include/linux/tty.h#define C_SPEED(tty)  ((tty)->termios->c_cflag & CBAUD)
tty185include/linux/tty.h#define C_HUP(tty)  (C_SPEED((tty)) == B0)
tty213include/linux/tty.hint  (*open)(struct tty_struct * tty, struct file * filp);
tty214include/linux/tty.hvoid (*close)(struct tty_struct * tty, struct file * filp);
tty215include/linux/tty.hvoid (*write)(struct tty_struct * tty);
tty216include/linux/tty.hint  (*ioctl)(struct tty_struct *tty, struct file * file,
tty218include/linux/tty.hvoid (*throttle)(struct tty_struct * tty, int status);
tty219include/linux/tty.hvoid (*set_termios)(struct tty_struct *tty, struct termios * old);
tty238include/linux/tty.hint  (*read)(struct tty_struct * tty, struct file * file,
tty240include/linux/tty.hint  (*write)(struct tty_struct * tty, struct file * file,
tty242include/linux/tty.hint  (*ioctl)(struct tty_struct * tty, struct file * file,
tty307include/linux/tty.h#define TTY_WRITE_FLUSH(tty) tty_write_flush((tty))
tty308include/linux/tty.h#define TTY_READ_FLUSH(tty) tty_read_flush((tty))
tty338include/linux/tty.hextern void flush_input(struct tty_struct * tty);
tty339include/linux/tty.hextern void flush_output(struct tty_struct * tty);
tty340include/linux/tty.hextern void wait_until_sent(struct tty_struct * tty);
tty341include/linux/tty.hextern void copy_to_cooked(struct tty_struct * tty);
tty347include/linux/tty.hextern int tty_signal(int sig, struct tty_struct *tty);
tty350include/linux/tty.hextern void tty_hangup(struct tty_struct * tty);
tty351include/linux/tty.hextern void tty_vhangup(struct tty_struct * tty);
tty354include/linux/tty.hextern void do_SAK(struct tty_struct *tty);
tty358include/linux/tty.hextern void rs_write(struct tty_struct * tty);
tty359include/linux/tty.hextern void con_write(struct tty_struct * tty);
tty363include/linux/tty.hextern int  rs_open(struct tty_struct * tty, struct file * filp);
tty367include/linux/tty.hextern int  pty_open(struct tty_struct * tty, struct file * filp);
tty371include/linux/tty.hextern int con_open(struct tty_struct * tty, struct file * filp);
tty378include/linux/tty.hextern int vt_ioctl(struct tty_struct *tty, struct file * file,
tty599kernel/chr_drv/console.cstatic void respond_string(char * p, int currcons, struct tty_struct * tty)
tty602kernel/chr_drv/console.cput_tty_queue(*p, &tty->read_q);
tty605kernel/chr_drv/console.cTTY_READ_FLUSH(tty);
tty608kernel/chr_drv/console.cstatic void respond_num(unsigned int n, int currcons, struct tty_struct * tty)
tty618kernel/chr_drv/console.cput_tty_queue(buff[i], &tty->read_q);
tty623kernel/chr_drv/console.cstatic void cursor_report(int currcons, struct tty_struct * tty)
tty625kernel/chr_drv/console.cput_tty_queue('\033', &tty->read_q);
tty626kernel/chr_drv/console.cput_tty_queue('[', &tty->read_q);
tty627kernel/chr_drv/console.crespond_num(y + (decom ? top+1 : 1), currcons, tty);
tty628kernel/chr_drv/console.cput_tty_queue(';', &tty->read_q);
tty629kernel/chr_drv/console.crespond_num(x+1, currcons, tty);
tty630kernel/chr_drv/console.cput_tty_queue('R', &tty->read_q);
tty631kernel/chr_drv/console.cTTY_READ_FLUSH(tty);
tty634kernel/chr_drv/console.cstatic inline void status_report(int currcons, struct tty_struct * tty)
tty636kernel/chr_drv/console.crespond_string("\033[0n", currcons, tty);  /* Terminal ok */
tty639kernel/chr_drv/console.cstatic inline void respond_ID(int currcons, struct tty_struct * tty)
tty641kernel/chr_drv/console.crespond_string(VT102ID, currcons, tty);
tty893kernel/chr_drv/console.cvoid con_write(struct tty_struct * tty)
tty898kernel/chr_drv/console.cwake_up_interruptible(&tty->write_q.proc_list);
tty899kernel/chr_drv/console.ccurrcons = tty->line - 1;
tty904kernel/chr_drv/console.cwhile (!tty->stopped &&  (c = get_tty_queue(&tty->write_q)) >= 0) {
tty993kernel/chr_drv/console.crespond_ID(currcons,tty);
tty1054kernel/chr_drv/console.cstatus_report(currcons,tty);
tty1056kernel/chr_drv/console.ccursor_report(currcons,tty);
tty1118kernel/chr_drv/console.crespond_ID(currcons,tty);
tty1497kernel/chr_drv/console.cint con_open(struct tty_struct *tty, struct file * filp)
tty1499kernel/chr_drv/console.ctty->write = con_write;
tty1500kernel/chr_drv/console.ctty->ioctl = vt_ioctl;
tty1501kernel/chr_drv/console.cif (tty->line > NR_CONSOLES)
tty59kernel/chr_drv/keyboard.cstatic struct tty_struct * tty = NULL;
tty107kernel/chr_drv/keyboard.ctty = TTY_TABLE(0);
tty136kernel/chr_drv/keyboard.c(vc_kbd_flag(kbd,VC_REPEAT) && tty &&
tty137kernel/chr_drv/keyboard.c(L_ECHO(tty) || (EMPTY(&tty->secondary) && EMPTY(&tty->read_q)))))
tty149kernel/chr_drv/keyboard.cif (!tty)
tty151kernel/chr_drv/keyboard.cqp = &tty->read_q;
tty166kernel/chr_drv/keyboard.cif (!tty)
tty168kernel/chr_drv/keyboard.cqp = &tty->read_q;
tty269kernel/chr_drv/keyboard.cput_queue(INTR_CHAR(tty));
tty280kernel/chr_drv/keyboard.cput_queue(START_CHAR(tty));
tty284kernel/chr_drv/keyboard.cput_queue(STOP_CHAR(tty));
tty24kernel/chr_drv/pty.cstatic void pty_close(struct tty_struct * tty, struct file * filp)
tty26kernel/chr_drv/pty.cif (!tty || (tty->count > 1))
tty28kernel/chr_drv/pty.cwake_up_interruptible(&tty->read_q.proc_list);
tty29kernel/chr_drv/pty.cif (!tty->link)
tty31kernel/chr_drv/pty.cwake_up_interruptible(&tty->link->write_q.proc_list);
tty32kernel/chr_drv/pty.cif (IS_A_PTY_MASTER(tty->line)) {
tty33kernel/chr_drv/pty.ctty_hangup(tty->link);
tty34kernel/chr_drv/pty.cflush_input(tty);
tty35kernel/chr_drv/pty.cflush_output(tty);
tty68kernel/chr_drv/pty.cstatic void pty_write(struct tty_struct * tty)
tty70kernel/chr_drv/pty.cif (tty->link)
tty71kernel/chr_drv/pty.cpty_copy(tty,tty->link);
tty74kernel/chr_drv/pty.cint pty_open(struct tty_struct *tty, struct file * filp)
tty76kernel/chr_drv/pty.cif (!tty || !tty->link)
tty78kernel/chr_drv/pty.ctty->write = tty->link->write = pty_write;
tty79kernel/chr_drv/pty.ctty->close = tty->link->close = pty_close;
tty80kernel/chr_drv/pty.cwake_up_interruptible(&tty->read_q.proc_list);
tty83kernel/chr_drv/pty.cwhile (!tty->link->count && !(current->signal & ~current->blocked))
tty84kernel/chr_drv/pty.cinterruptible_sleep_on(&tty->link->read_q.proc_list);
tty85kernel/chr_drv/pty.cif (!tty->link->count)
tty145kernel/chr_drv/serial.cstatic void rs_throttle(struct tty_struct * tty, int status);
tty213kernel/chr_drv/serial.cqueue = &info->tty->read_q;
tty225kernel/chr_drv/serial.cset_bit(head, &info->tty->readq_flags);
tty240kernel/chr_drv/serial.c&info->tty->flags)) 
tty241kernel/chr_drv/serial.crs_throttle(info->tty, TTY_THROTTLE_RQ_FULL);
tty250kernel/chr_drv/serial.cqueue = &info->tty->write_q;
tty268kernel/chr_drv/serial.cif (info->tty->write_data_cnt) {
tty269kernel/chr_drv/serial.cset_bit(info->tty->line, &tty_check_write);
tty285kernel/chr_drv/serial.cif ((status & UART_MSR_DDCD) && !C_LOCAL(info->tty)) {
tty291kernel/chr_drv/serial.cif (C_RTSCTS(info->tty)) {
tty292kernel/chr_drv/serial.cif (info->tty->stopped) {
tty294kernel/chr_drv/serial.cinfo->tty->stopped = 0;
tty298kernel/chr_drv/serial.cinfo->tty->stopped = !(status & UART_MSR_CTS);
tty345kernel/chr_drv/serial.c!info->tty->stopped) {
tty397kernel/chr_drv/serial.cdo_SAK(info->tty);
tty399kernel/chr_drv/serial.cif (I_BRKINT(info->tty)) {
tty400kernel/chr_drv/serial.cflush_input(info->tty);
tty401kernel/chr_drv/serial.cflush_output(info->tty);
tty402kernel/chr_drv/serial.cif (info->tty->pgrp > 0)
tty403kernel/chr_drv/serial.ckill_pg(info->tty->pgrp, SIGINT,1);
tty423kernel/chr_drv/serial.cif (!info->tty)  
tty426kernel/chr_drv/serial.cTTY_READ_FLUSH(info->tty);
tty429kernel/chr_drv/serial.cwake_up_interruptible(&info->tty->write_q.proc_list);
tty432kernel/chr_drv/serial.ctty_hangup(info->tty);
tty574kernel/chr_drv/serial.cif (info->tty)
tty575kernel/chr_drv/serial.cclear_bit(TTY_IO_ERROR, &info->tty->flags);
tty579kernel/chr_drv/serial.cif (info->tty && info->tty->termios && I_INPCK(info->tty))
tty597kernel/chr_drv/serial.cif (info->tty && !(info->tty->termios->c_cflag & HUPCL))
tty605kernel/chr_drv/serial.cif (info->tty)
tty606kernel/chr_drv/serial.cset_bit(TTY_IO_ERROR, &info->tty->flags);
tty625kernel/chr_drv/serial.cif (!info->tty || !info->tty->termios)
tty627kernel/chr_drv/serial.ccflag = info->tty->termios->c_cflag;
tty697kernel/chr_drv/serial.cqueue = &info->tty->write_q;
tty716kernel/chr_drv/serial.cvoid rs_write(struct tty_struct * tty)
tty720kernel/chr_drv/serial.cif (!tty || tty->stopped)
tty722kernel/chr_drv/serial.cinfo = rs_table + DEV_TO_SL(tty->line);
tty737kernel/chr_drv/serial.cstatic void rs_throttle(struct tty_struct * tty, int status)
tty743kernel/chr_drv/serial.cprintk("throttle tty%d: %d (%d, %d)....\n", DEV_TO_SL(tty->line),
tty744kernel/chr_drv/serial.cstatus, LEFT(&tty->read_q), LEFT(&tty->secondary));
tty748kernel/chr_drv/serial.cinfo = rs_table + DEV_TO_SL(tty->line);
tty749kernel/chr_drv/serial.cif (tty->termios->c_iflag & IXOFF) {
tty750kernel/chr_drv/serial.cinfo->x_char = STOP_CHAR(tty);
tty758kernel/chr_drv/serial.cinfo = rs_table + DEV_TO_SL(tty->line);
tty759kernel/chr_drv/serial.cif (tty->termios->c_iflag & IXOFF) {
tty764kernel/chr_drv/serial.cinfo->x_char = START_CHAR(tty);
tty972kernel/chr_drv/serial.cstatic int rs_ioctl(struct tty_struct *tty, struct file * file,
tty978kernel/chr_drv/serial.cline = DEV_TO_SL(tty->line);
tty985kernel/chr_drv/serial.cwait_until_sent(tty);
tty990kernel/chr_drv/serial.cwait_until_sent(tty);
tty997kernel/chr_drv/serial.cput_fs_long(C_LOCAL(tty) ? 1 : 0,
tty1002kernel/chr_drv/serial.ctty->termios->c_cflag =
tty1003kernel/chr_drv/serial.c((tty->termios->c_cflag & ~CLOCAL) |
tty1032kernel/chr_drv/serial.cstatic void rs_set_termios(struct tty_struct *tty, struct termios *old_termios)
tty1036kernel/chr_drv/serial.cif (tty->termios->c_cflag == old_termios->c_cflag)
tty1039kernel/chr_drv/serial.cinfo = &rs_table[DEV_TO_SL(tty->line)];
tty1041kernel/chr_drv/serial.cchange_speed(DEV_TO_SL(tty->line));
tty1044kernel/chr_drv/serial.c!(tty->termios->c_cflag & CRTSCTS)) {
tty1045kernel/chr_drv/serial.ctty->stopped = 0;
tty1046kernel/chr_drv/serial.crs_write(tty);
tty1050kernel/chr_drv/serial.c(tty->termios->c_cflag & CLOCAL))
tty1053kernel/chr_drv/serial.cif (I_INPCK(tty))
tty1070kernel/chr_drv/serial.cstatic void rs_close(struct tty_struct *tty, struct file * filp)
tty1075kernel/chr_drv/serial.cline = DEV_TO_SL(tty->line);
tty1084kernel/chr_drv/serial.ctty->stopped = 0;    /* Force flush to succeed */
tty1085kernel/chr_drv/serial.cwait_until_sent(tty);
tty1115kernel/chr_drv/serial.cinfo->tty = 0;
tty1123kernel/chr_drv/serial.cstatic int block_til_ready(struct tty_struct *tty, struct file * filp,
tty1178kernel/chr_drv/serial.c(C_LOCAL(tty) ||
tty1211kernel/chr_drv/serial.cint rs_open(struct tty_struct *tty, struct file * filp)
tty1217kernel/chr_drv/serial.cline = DEV_TO_SL(tty->line);
tty1225kernel/chr_drv/serial.cinfo->tty = tty;
tty1227kernel/chr_drv/serial.ctty->write = rs_write;
tty1228kernel/chr_drv/serial.ctty->close = rs_close;
tty1229kernel/chr_drv/serial.ctty->ioctl = rs_ioctl;
tty1230kernel/chr_drv/serial.ctty->throttle = rs_throttle;
tty1231kernel/chr_drv/serial.ctty->set_termios = rs_set_termios;
tty1235kernel/chr_drv/serial.cset_bit(TTY_IO_ERROR, &tty->flags);
tty1269kernel/chr_drv/serial.cretval = block_til_ready(tty, filp, info);
tty1536kernel/chr_drv/serial.cinfo->tty = 0;
tty69kernel/chr_drv/tty_io.cstatic void initialize_tty_struct(int line, struct tty_struct *tty);
tty126kernel/chr_drv/tty_io.cint tty_read_raw_data(struct tty_struct *tty, unsigned char *bufp, int buflen)
tty134kernel/chr_drv/tty_io.ctail = tty->read_q.tail;
tty135kernel/chr_drv/tty_io.chead = tty->read_q.head;
tty137kernel/chr_drv/tty_io.c*p++ =  tty->read_q.buf[tail++];
tty141kernel/chr_drv/tty_io.ctty->read_q.tail = tail;
tty147kernel/chr_drv/tty_io.cvoid tty_write_flush(struct tty_struct * tty)
tty149kernel/chr_drv/tty_io.cif (!tty->write || EMPTY(&tty->write_q))
tty151kernel/chr_drv/tty_io.cif (set_bit(TTY_WRITE_BUSY,&tty->flags))
tty153kernel/chr_drv/tty_io.ctty->write(tty);
tty154kernel/chr_drv/tty_io.cif (clear_bit(TTY_WRITE_BUSY,&tty->flags))
tty158kernel/chr_drv/tty_io.cvoid tty_read_flush(struct tty_struct * tty)
tty160kernel/chr_drv/tty_io.cif (!tty || EMPTY(&tty->read_q))
tty162kernel/chr_drv/tty_io.cif (set_bit(TTY_READ_BUSY, &tty->flags))
tty164kernel/chr_drv/tty_io.cldiscs[tty->disc].handler(tty);
tty165kernel/chr_drv/tty_io.cif (clear_bit(TTY_READ_BUSY, &tty->flags))
tty231kernel/chr_drv/tty_io.cvoid do_tty_hangup(struct tty_struct * tty, struct file_operations *fops)
tty237kernel/chr_drv/tty_io.cif (!tty)
tty239kernel/chr_drv/tty_io.cdev = 0x0400 + tty->line;
tty252kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->secondary.proc_list);
tty253kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->read_q.proc_list);
tty254kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->write_q.proc_list);
tty255kernel/chr_drv/tty_io.cif (tty->session > 0)
tty256kernel/chr_drv/tty_io.ckill_sl(tty->session,SIGHUP,1);
tty257kernel/chr_drv/tty_io.ctty->session = 0;
tty258kernel/chr_drv/tty_io.ctty->pgrp = -1;
tty260kernel/chr_drv/tty_io.cif ((*p) && (*p)->tty == tty->line)
tty261kernel/chr_drv/tty_io.c(*p)->tty = -1;
tty265kernel/chr_drv/tty_io.cvoid tty_hangup(struct tty_struct * tty)
tty267kernel/chr_drv/tty_io.cdo_tty_hangup(tty, &hung_up_tty_fops);
tty270kernel/chr_drv/tty_io.cvoid tty_vhangup(struct tty_struct * tty)
tty272kernel/chr_drv/tty_io.cdo_tty_hangup(tty, &vhung_up_tty_fops);
tty466kernel/chr_drv/tty_io.cvoid copy_to_cooked(struct tty_struct * tty)
tty471kernel/chr_drv/tty_io.cif (!tty) {
tty475kernel/chr_drv/tty_io.cif (!tty->write) {
tty477kernel/chr_drv/tty_io.ctty->line);
tty485kernel/chr_drv/tty_io.cc = LEFT(&tty->secondary);
tty486kernel/chr_drv/tty_io.cif (tty->throttle && (c < SQ_THRESHOLD_LW)
tty487kernel/chr_drv/tty_io.c&& !set_bit(TTY_SQ_THROTTLED, &tty->flags))
tty488kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_SQ_FULL);
tty492kernel/chr_drv/tty_io.cif (tty->read_q.tail != tty->read_q.head) {
tty493kernel/chr_drv/tty_io.cc = 0xff & tty->read_q.buf[tty->read_q.tail];
tty494kernel/chr_drv/tty_io.cspecial_flag = !clear_bit(tty->read_q.tail,
tty495kernel/chr_drv/tty_io.c&tty->readq_flags);
tty496kernel/chr_drv/tty_io.ctty->read_q.tail = (tty->read_q.tail + 1) &
tty504kernel/chr_drv/tty_io.ctty->char_error = c & 3;
tty507kernel/chr_drv/tty_io.cif (tty->char_error) {
tty508kernel/chr_drv/tty_io.cif (tty->char_error == TTY_BREAK) {
tty509kernel/chr_drv/tty_io.ctty->char_error = 0;
tty510kernel/chr_drv/tty_io.cif (I_IGNBRK(tty))
tty512kernel/chr_drv/tty_io.cif (I_PARMRK(tty)) {
tty513kernel/chr_drv/tty_io.cput_tty_queue(0377, &tty->secondary);
tty514kernel/chr_drv/tty_io.cput_tty_queue(0, &tty->secondary);
tty516kernel/chr_drv/tty_io.cput_tty_queue(0, &tty->secondary);
tty520kernel/chr_drv/tty_io.ctty->char_error = 0;
tty521kernel/chr_drv/tty_io.cif (I_IGNPAR(tty)) {
tty524kernel/chr_drv/tty_io.cif (I_PARMRK(tty)) {
tty525kernel/chr_drv/tty_io.cput_tty_queue(0377, &tty->secondary);
tty526kernel/chr_drv/tty_io.cput_tty_queue(0, &tty->secondary);
tty527kernel/chr_drv/tty_io.cput_tty_queue(c, &tty->secondary);
tty529kernel/chr_drv/tty_io.cput_tty_queue(0, &tty->secondary);
tty532kernel/chr_drv/tty_io.cif (I_STRP(tty))
tty534kernel/chr_drv/tty_io.celse if (I_PARMRK(tty) && (c == 0377))
tty535kernel/chr_drv/tty_io.cput_tty_queue(0377, &tty->secondary);
tty537kernel/chr_drv/tty_io.cif (I_CRNL(tty))
tty539kernel/chr_drv/tty_io.celse if (I_NOCR(tty))
tty541kernel/chr_drv/tty_io.c} else if (c==10 && I_NLCR(tty))
tty543kernel/chr_drv/tty_io.cif (I_UCLC(tty))
tty546kernel/chr_drv/tty_io.ctty->lnext = 1;
tty547kernel/chr_drv/tty_io.cif (L_CANON(tty) && !tty->lnext) {
tty548kernel/chr_drv/tty_io.cif (c == KILL_CHAR(tty) || c == WERASE_CHAR(tty)) {
tty550kernel/chr_drv/tty_io.c(c == WERASE_CHAR(tty)) ? 0 : -1;
tty553kernel/chr_drv/tty_io.cwhile(!(EMPTY(&tty->secondary) ||
tty554kernel/chr_drv/tty_io.c(c=LAST(&tty->secondary))==10 ||
tty555kernel/chr_drv/tty_io.c((EOF_CHAR(tty) != __DISABLED_CHAR) &&
tty556kernel/chr_drv/tty_io.c(c==EOF_CHAR(tty))))) {
tty566kernel/chr_drv/tty_io.cif (L_ECHO(tty)) {
tty568kernel/chr_drv/tty_io.cput_tty_queue(8, &tty->write_q);
tty569kernel/chr_drv/tty_io.cput_tty_queue(' ', &tty->write_q);
tty570kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty572kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty573kernel/chr_drv/tty_io.cput_tty_queue(' ',&tty->write_q);
tty574kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty576kernel/chr_drv/tty_io.cDEC(tty->secondary.head);
tty580kernel/chr_drv/tty_io.cif (c == ERASE_CHAR(tty)) {
tty581kernel/chr_drv/tty_io.cif (EMPTY(&tty->secondary) ||
tty582kernel/chr_drv/tty_io.c(c=LAST(&tty->secondary))==10 ||
tty583kernel/chr_drv/tty_io.c((EOF_CHAR(tty) != __DISABLED_CHAR) &&
tty584kernel/chr_drv/tty_io.c(c==EOF_CHAR(tty))))
tty586kernel/chr_drv/tty_io.cif (L_ECHO(tty)) {
tty588kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty589kernel/chr_drv/tty_io.cput_tty_queue(' ',&tty->write_q);
tty590kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty592kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty593kernel/chr_drv/tty_io.cput_tty_queue(32,&tty->write_q);
tty594kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty596kernel/chr_drv/tty_io.cDEC(tty->secondary.head);
tty599kernel/chr_drv/tty_io.cif (c == LNEXT_CHAR(tty)) {
tty600kernel/chr_drv/tty_io.ctty->lnext = 1;
tty601kernel/chr_drv/tty_io.cif (L_ECHO(tty)) {
tty602kernel/chr_drv/tty_io.cput_tty_queue('^',&tty->write_q);
tty603kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty608kernel/chr_drv/tty_io.cif (I_IXON(tty) && !tty->lnext) {
tty609kernel/chr_drv/tty_io.cif (c == STOP_CHAR(tty)) {
tty610kernel/chr_drv/tty_io.ctty->status_changed = 1;
tty611kernel/chr_drv/tty_io.ctty->ctrl_status |= TIOCPKT_STOP;
tty612kernel/chr_drv/tty_io.ctty->stopped=1;
tty613kernel/chr_drv/tty_io.cif (IS_A_CONSOLE(tty->line)) {
tty619kernel/chr_drv/tty_io.cif (((I_IXANY(tty)) && tty->stopped) ||
tty620kernel/chr_drv/tty_io.c(c == START_CHAR(tty))) {
tty621kernel/chr_drv/tty_io.ctty->status_changed = 1;
tty622kernel/chr_drv/tty_io.ctty->ctrl_status |= TIOCPKT_START;
tty623kernel/chr_drv/tty_io.ctty->stopped=0;
tty624kernel/chr_drv/tty_io.cif (IS_A_CONSOLE(tty->line)) {
tty631kernel/chr_drv/tty_io.cif (L_ISIG(tty) && !tty->lnext) {
tty632kernel/chr_drv/tty_io.cif (c == INTR_CHAR(tty)) {
tty633kernel/chr_drv/tty_io.ckill_pg(tty->pgrp, SIGINT, 1);
tty634kernel/chr_drv/tty_io.cflush_input(tty);
tty637kernel/chr_drv/tty_io.cif (c == QUIT_CHAR(tty)) {
tty638kernel/chr_drv/tty_io.ckill_pg(tty->pgrp, SIGQUIT, 1);
tty639kernel/chr_drv/tty_io.cflush_input(tty);
tty642kernel/chr_drv/tty_io.cif (c == SUSPEND_CHAR(tty)) {
tty643kernel/chr_drv/tty_io.cif (!is_orphaned_pgrp(tty->pgrp)) {
tty644kernel/chr_drv/tty_io.ckill_pg(tty->pgrp, SIGTSTP, 1);
tty645kernel/chr_drv/tty_io.cflush_input(tty);
tty650kernel/chr_drv/tty_io.cif (c==10 || (EOF_CHAR(tty) != __DISABLED_CHAR &&
tty651kernel/chr_drv/tty_io.cc==EOF_CHAR(tty)))
tty652kernel/chr_drv/tty_io.ctty->secondary.data++;
tty653kernel/chr_drv/tty_io.cif ((c==10) && (L_ECHO(tty) || (L_CANON(tty) && L_ECHONL(tty)))) {
tty654kernel/chr_drv/tty_io.cput_tty_queue(10,&tty->write_q);
tty655kernel/chr_drv/tty_io.cput_tty_queue(13,&tty->write_q);
tty656kernel/chr_drv/tty_io.c} else if (L_ECHO(tty)) {
tty657kernel/chr_drv/tty_io.cif (c<32 && L_ECHOCTL(tty)) {
tty658kernel/chr_drv/tty_io.cput_tty_queue('^',&tty->write_q);
tty659kernel/chr_drv/tty_io.cput_tty_queue(c+64, &tty->write_q);
tty660kernel/chr_drv/tty_io.cif (EOF_CHAR(tty) != __DISABLED_CHAR &&
tty661kernel/chr_drv/tty_io.cc==EOF_CHAR(tty) && !tty->lnext) {
tty662kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty663kernel/chr_drv/tty_io.cput_tty_queue(8,&tty->write_q);
tty666kernel/chr_drv/tty_io.cput_tty_queue(c, &tty->write_q);
tty668kernel/chr_drv/tty_io.ctty->lnext = 0;
tty669kernel/chr_drv/tty_io.cput_tty_queue(c, &tty->secondary);
tty671kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty);
tty672kernel/chr_drv/tty_io.cif (!EMPTY(&tty->secondary))
tty673kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->secondary.proc_list);
tty674kernel/chr_drv/tty_io.cif (tty->write_q.proc_list && LEFT(&tty->write_q) > TTY_BUF_SIZE/2)
tty675kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->write_q.proc_list);
tty676kernel/chr_drv/tty_io.cif (tty->throttle && (LEFT(&tty->read_q) >= RQ_THRESHOLD_HW)
tty677kernel/chr_drv/tty_io.c&& !clear_bit(TTY_RQ_THROTTLED, &tty->flags))
tty678kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_RQ_AVAIL);
tty679kernel/chr_drv/tty_io.cif (tty->throttle && (LEFT(&tty->secondary) >= SQ_THRESHOLD_HW)
tty680kernel/chr_drv/tty_io.c&& !clear_bit(TTY_SQ_THROTTLED, &tty->flags))
tty681kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_SQ_AVAIL);
tty693kernel/chr_drv/tty_io.cstatic void wait_for_canon_input(struct file * file, struct tty_struct * tty)
tty695kernel/chr_drv/tty_io.cif (!available_canon_input(tty)) {
tty698kernel/chr_drv/tty_io.c__wait_for_canon_input(file, tty);
tty702kernel/chr_drv/tty_io.cstatic int read_chan(struct tty_struct * tty, struct file * file, char * buf, int nr)
tty709kernel/chr_drv/tty_io.cif (L_CANON(tty))
tty712kernel/chr_drv/tty_io.ctime = 10L*tty->termios->c_cc[VTIME];
tty713kernel/chr_drv/tty_io.cminimum = tty->termios->c_cc[VMIN];
tty727kernel/chr_drv/tty_io.cif (L_CANON(tty)) {
tty728kernel/chr_drv/tty_io.cif (!available_canon_input(tty))
tty731kernel/chr_drv/tty_io.c} else if (L_CANON(tty)) {
tty732kernel/chr_drv/tty_io.cwait_for_canon_input(file, tty);
tty740kernel/chr_drv/tty_io.cif (tty->packet && tty->link && tty->link->status_changed) {
tty741kernel/chr_drv/tty_io.cput_fs_byte (tty->link->ctrl_status, b);
tty742kernel/chr_drv/tty_io.ctty->link->status_changed = 0;
tty747kernel/chr_drv/tty_io.cif (tty->packet) {
tty755kernel/chr_drv/tty_io.cadd_wait_queue(&tty->secondary.proc_list, &wait);
tty761kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty762kernel/chr_drv/tty_io.cif (tty->link)
tty763kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty764kernel/chr_drv/tty_io.cwhile (nr > 0 && ((c = get_tty_queue(&tty->secondary)) >= 0)) {
tty765kernel/chr_drv/tty_io.cif ((EOF_CHAR(tty) != __DISABLED_CHAR &&
tty766kernel/chr_drv/tty_io.cc==EOF_CHAR(tty)) || c==10)
tty767kernel/chr_drv/tty_io.ctty->secondary.data--;
tty768kernel/chr_drv/tty_io.cif ((EOF_CHAR(tty) != __DISABLED_CHAR &&
tty769kernel/chr_drv/tty_io.cc==EOF_CHAR(tty)) && L_CANON(tty))
tty775kernel/chr_drv/tty_io.cif (c==10 && L_CANON(tty))
tty778kernel/chr_drv/tty_io.cwake_up_interruptible(&tty->read_q.proc_list);
tty783kernel/chr_drv/tty_io.cif (tty->throttle && (LEFT(&tty->secondary) >= SQ_THRESHOLD_HW)
tty784kernel/chr_drv/tty_io.c&& !clear_bit(TTY_SQ_THROTTLED, &tty->flags))
tty785kernel/chr_drv/tty_io.ctty->throttle(tty, TTY_THROTTLE_SQ_AVAIL);
tty790kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty792kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty793kernel/chr_drv/tty_io.cif (tty->link)
tty794kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty795kernel/chr_drv/tty_io.cif (!EMPTY(&tty->secondary))
tty798kernel/chr_drv/tty_io.cif (EMPTY(&tty->secondary))
tty802kernel/chr_drv/tty_io.cremove_wait_queue(&tty->secondary.proc_list, &wait);
tty803kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty804kernel/chr_drv/tty_io.cif (tty->link && tty->link->write)
tty805kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty810kernel/chr_drv/tty_io.cif (tty->packet) {
tty825kernel/chr_drv/tty_io.cstatic void __wait_for_canon_input(struct file * file, struct tty_struct * tty)
tty829kernel/chr_drv/tty_io.cadd_wait_queue(&tty->secondary.proc_list, &wait);
tty832kernel/chr_drv/tty_io.cif (available_canon_input(tty))
tty841kernel/chr_drv/tty_io.cremove_wait_queue(&tty->secondary.proc_list, &wait);
tty844kernel/chr_drv/tty_io.cstatic int available_canon_input(struct tty_struct * tty)
tty846kernel/chr_drv/tty_io.cTTY_READ_FLUSH(tty);
tty847kernel/chr_drv/tty_io.cif (tty->link)
tty848kernel/chr_drv/tty_io.cif (tty->link->count)
tty849kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty->link);
tty852kernel/chr_drv/tty_io.cif (FULL(&tty->read_q))
tty854kernel/chr_drv/tty_io.cif (tty->secondary.data)
tty859kernel/chr_drv/tty_io.cstatic int write_chan(struct tty_struct * tty, struct file * file, char * buf, int nr)
tty868kernel/chr_drv/tty_io.cadd_wait_queue(&tty->write_q.proc_list, &wait);
tty874kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count) {
tty879kernel/chr_drv/tty_io.cif (FULL(&tty->write_q)) {
tty880kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty);
tty881kernel/chr_drv/tty_io.cif (FULL(&tty->write_q))
tty887kernel/chr_drv/tty_io.cwhile (nr>0 && !FULL(&tty->write_q)) {
tty889kernel/chr_drv/tty_io.cif (O_POST(tty)) {
tty890kernel/chr_drv/tty_io.cif (c=='\r' && O_CRNL(tty))
tty892kernel/chr_drv/tty_io.celse if (c=='\n' && O_NLRET(tty))
tty894kernel/chr_drv/tty_io.cif (c=='\n' && O_NLCR(tty) &&
tty895kernel/chr_drv/tty_io.c!set_bit(TTY_CR_PENDING,&tty->flags)) {
tty896kernel/chr_drv/tty_io.cput_tty_queue(13,&tty->write_q);
tty899kernel/chr_drv/tty_io.cif (O_LCUC(tty))
tty903kernel/chr_drv/tty_io.cclear_bit(TTY_CR_PENDING,&tty->flags);
tty904kernel/chr_drv/tty_io.cput_tty_queue(c,&tty->write_q);
tty909kernel/chr_drv/tty_io.cremove_wait_queue(&tty->write_q.proc_list, &wait);
tty910kernel/chr_drv/tty_io.cTTY_WRITE_FLUSH(tty);
tty913kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty923kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty931kernel/chr_drv/tty_io.ctty = TTY_TABLE(dev);
tty932kernel/chr_drv/tty_io.cif (!tty || (tty->flags & (1 << TTY_IO_ERROR)))
tty935kernel/chr_drv/tty_io.c(tty->pgrp > 0) &&
tty936kernel/chr_drv/tty_io.c(current->tty == dev) &&
tty937kernel/chr_drv/tty_io.c(tty->pgrp != current->pgrp))
tty944kernel/chr_drv/tty_io.cif (ldiscs[tty->disc].read)
tty945kernel/chr_drv/tty_io.ci = (ldiscs[tty->disc].read)(tty,file,buf,count);
tty956kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty966kernel/chr_drv/tty_io.ctty = redirect;
tty968kernel/chr_drv/tty_io.ctty = TTY_TABLE(dev);
tty969kernel/chr_drv/tty_io.cif (!tty || !tty->write || (tty->flags & (1 << TTY_IO_ERROR)))
tty971kernel/chr_drv/tty_io.cif (!is_console && L_TOSTOP(tty) && (tty->pgrp > 0) &&
tty972kernel/chr_drv/tty_io.c(current->tty == dev) && (tty->pgrp != current->pgrp)) {
tty980kernel/chr_drv/tty_io.cif (ldiscs[tty->disc].write)
tty981kernel/chr_drv/tty_io.ci = (ldiscs[tty->disc].write)(tty,file,buf,count);
tty996kernel/chr_drv/tty_io.cstruct tty_struct *tty, *o_tty;
tty1002kernel/chr_drv/tty_io.ctty = o_tty = NULL;
tty1009kernel/chr_drv/tty_io.cif (!tty_table[dev] && !tty) {
tty1010kernel/chr_drv/tty_io.ctty = (struct tty_struct *) get_free_page(GFP_KERNEL);
tty1011kernel/chr_drv/tty_io.cif (!tty)
tty1013kernel/chr_drv/tty_io.cinitialize_tty_struct(dev, tty);
tty1045kernel/chr_drv/tty_io.ctty->termios = tty_termios[dev];
tty1046kernel/chr_drv/tty_io.ctty_table[dev] = tty;
tty1047kernel/chr_drv/tty_io.ctty = NULL;
tty1067kernel/chr_drv/tty_io.cif (tty)
tty1068kernel/chr_drv/tty_io.cfree_page((unsigned long) tty);
tty1085kernel/chr_drv/tty_io.cstruct tty_struct *tty, *o_tty;
tty1089kernel/chr_drv/tty_io.ctty = tty_table[dev];
tty1093kernel/chr_drv/tty_io.cif (!tty) {
tty1112kernel/chr_drv/tty_io.cif (tty->link != o_tty || o_tty->link != tty) {
tty1117kernel/chr_drv/tty_io.ctty->write_data_cnt = 0; /* Clear out pending trash */
tty1118kernel/chr_drv/tty_io.cif (tty->close)
tty1119kernel/chr_drv/tty_io.ctty->close(tty, filp);
tty1121kernel/chr_drv/tty_io.cif (--tty->link->count < 0) {
tty1123kernel/chr_drv/tty_io.cdev, tty->count);
tty1124kernel/chr_drv/tty_io.ctty->link->count = 0;
tty1127kernel/chr_drv/tty_io.cif (--tty->count < 0) {
tty1129kernel/chr_drv/tty_io.cdev, tty->count);
tty1130kernel/chr_drv/tty_io.ctty->count = 0;
tty1132kernel/chr_drv/tty_io.cif (tty->count)
tty1140kernel/chr_drv/tty_io.cif ((*p) && (*p)->tty == tty->line)
tty1141kernel/chr_drv/tty_io.c(*p)->tty = -1;
tty1144kernel/chr_drv/tty_io.cif (ldiscs[tty->disc].close != NULL)
tty1145kernel/chr_drv/tty_io.cldiscs[tty->disc].close(tty);
tty1160kernel/chr_drv/tty_io.cif (tty == redirect || o_tty == redirect)
tty1162kernel/chr_drv/tty_io.cfree_page((unsigned long) tty);
tty1183kernel/chr_drv/tty_io.cstruct tty_struct *tty;
tty1193kernel/chr_drv/tty_io.cminor = current->tty;
tty1213kernel/chr_drv/tty_io.ctty = tty_table[minor];
tty1222kernel/chr_drv/tty_io.ctty->status_changed = 0;
tty1223kernel/chr_drv/tty_io.ctty->ctrl_status = 0;
tty1224kernel/chr_drv/tty_io.ctty->packet = 0;
tty1226kernel/chr_drv/tty_io.cif (tty->open) {
tty1227kernel/chr_drv/tty_io.cretval = tty->open(tty, filp);
tty1237kernel/chr_drv/tty_io.ccurrent->tty<0 &&
tty1238kernel/chr_drv/tty_io.ctty->session==0) {
tty1239kernel/chr_drv/tty_io.ccurrent->tty = minor;
tty1240kernel/chr_drv/tty_io.ctty->session = current->session;
tty1241kernel/chr_drv/tty_io.ctty->pgrp = current->pgrp;
tty1272kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty1280kernel/chr_drv/tty_io.ctty = TTY_TABLE(dev);
tty1281kernel/chr_drv/tty_io.cif (!tty) {
tty1287kernel/chr_drv/tty_io.cif (L_CANON(tty)) {
tty1288kernel/chr_drv/tty_io.cif (available_canon_input(tty))
tty1290kernel/chr_drv/tty_io.c} else if (!EMPTY(&tty->secondary))
tty1292kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty1296kernel/chr_drv/tty_io.cif (tty->packet && tty->link &&
tty1297kernel/chr_drv/tty_io.ctty->link->status_changed)
tty1300kernel/chr_drv/tty_io.cselect_wait(&tty->secondary.proc_list, wait);
tty1303kernel/chr_drv/tty_io.cif (!FULL(&tty->write_q))
tty1305kernel/chr_drv/tty_io.cselect_wait(&tty->write_q.proc_list, wait);
tty1308kernel/chr_drv/tty_io.cif (tty->link && !tty->link->count)
tty1327kernel/chr_drv/tty_io.cvoid do_SAK( struct tty_struct *tty)
tty1330kernel/chr_drv/tty_io.cint line = tty->line;
tty1331kernel/chr_drv/tty_io.cint session = tty->session;
tty1335kernel/chr_drv/tty_io.cflush_input(tty);
tty1336kernel/chr_drv/tty_io.cflush_output(tty);
tty1340kernel/chr_drv/tty_io.cif (((*p)->tty == line) ||
tty1371kernel/chr_drv/tty_io.cint tty_write_data(struct tty_struct *tty, char *bufp, int buflen,
tty1381kernel/chr_drv/tty_io.cif (tty->write_data_cnt) {
tty1386kernel/chr_drv/tty_io.chead = tty->write_q.head;
tty1387kernel/chr_drv/tty_io.ctail = tty->write_q.tail;
tty1392kernel/chr_drv/tty_io.ctty->write_q.buf[head++] = *p++;
tty1395kernel/chr_drv/tty_io.ctty->write_q.head = head;
tty1397kernel/chr_drv/tty_io.ctty->write_data_cnt = count;
tty1398kernel/chr_drv/tty_io.ctty->write_data_ptr = p;
tty1399kernel/chr_drv/tty_io.ctty->write_data_callback = callback;
tty1400kernel/chr_drv/tty_io.ctty->write_data_arg = callarg;
tty1419kernel/chr_drv/tty_io.cstruct tty_struct * tty;
tty1428kernel/chr_drv/tty_io.ctty = tty_table[line];
tty1429kernel/chr_drv/tty_io.cif (!tty || !tty->write_data_cnt)
tty1432kernel/chr_drv/tty_io.chead = tty->write_q.head;
tty1433kernel/chr_drv/tty_io.ctail = tty->write_q.tail;
tty1434kernel/chr_drv/tty_io.ccount = tty->write_data_cnt;
tty1435kernel/chr_drv/tty_io.cp = tty->write_data_ptr;
tty1438kernel/chr_drv/tty_io.ctty->write_q.buf[head++] = *p++;
tty1441kernel/chr_drv/tty_io.ctty->write_q.head = head;
tty1442kernel/chr_drv/tty_io.ctty->write_data_ptr = p;
tty1443kernel/chr_drv/tty_io.ctty->write_data_cnt = count;
tty1446kernel/chr_drv/tty_io.c(tty->write_data_callback)
tty1447kernel/chr_drv/tty_io.c(tty->write_data_arg);
tty1458kernel/chr_drv/tty_io.cstatic void initialize_tty_struct(int line, struct tty_struct *tty)
tty1460kernel/chr_drv/tty_io.cmemset(tty, 0, sizeof(struct tty_struct));
tty1461kernel/chr_drv/tty_io.ctty->line = line;
tty1462kernel/chr_drv/tty_io.ctty->disc = N_TTY;
tty1463kernel/chr_drv/tty_io.ctty->pgrp = -1;
tty1464kernel/chr_drv/tty_io.ctty->winsize.ws_row = 0;
tty1465kernel/chr_drv/tty_io.ctty->winsize.ws_col = 0;
tty1467kernel/chr_drv/tty_io.ctty->open = con_open;
tty1468kernel/chr_drv/tty_io.ctty->winsize.ws_row = video_num_lines;
tty1469kernel/chr_drv/tty_io.ctty->winsize.ws_col = video_num_columns;
tty1471kernel/chr_drv/tty_io.ctty->open = rs_open;
tty1473kernel/chr_drv/tty_io.ctty->open = pty_open;
tty44kernel/chr_drv/tty_ioctl.cvoid flush_input(struct tty_struct * tty)
tty46kernel/chr_drv/tty_ioctl.ctty->status_changed = 1;
tty47kernel/chr_drv/tty_ioctl.ctty->ctrl_status |= TIOCPKT_FLUSHREAD;
tty48kernel/chr_drv/tty_ioctl.cflush(&tty->read_q);
tty49kernel/chr_drv/tty_ioctl.cwake_up_interruptible(&tty->read_q.proc_list);
tty50kernel/chr_drv/tty_ioctl.cflush(&tty->secondary);
tty51kernel/chr_drv/tty_ioctl.ctty->secondary.data = 0;
tty53kernel/chr_drv/tty_ioctl.cif ((tty = tty->link) != NULL) {
tty54kernel/chr_drv/tty_ioctl.cflush(&tty->write_q);
tty55kernel/chr_drv/tty_ioctl.cwake_up_interruptible(&tty->write_q.proc_list);
tty59kernel/chr_drv/tty_ioctl.cvoid flush_output(struct tty_struct * tty)
tty61kernel/chr_drv/tty_ioctl.ctty->status_changed = 1;
tty62kernel/chr_drv/tty_ioctl.ctty->ctrl_status |= TIOCPKT_FLUSHWRITE;
tty63kernel/chr_drv/tty_ioctl.cflush(&tty->write_q);
tty64kernel/chr_drv/tty_ioctl.cwake_up_interruptible(&tty->write_q.proc_list);
tty65kernel/chr_drv/tty_ioctl.cif ((tty = tty->link) != NULL) {
tty66kernel/chr_drv/tty_ioctl.cflush(&tty->read_q);
tty67kernel/chr_drv/tty_ioctl.cwake_up_interruptible(&tty->read_q.proc_list);
tty68kernel/chr_drv/tty_ioctl.cflush(&tty->secondary);
tty69kernel/chr_drv/tty_ioctl.ctty->secondary.data = 0;
tty73kernel/chr_drv/tty_ioctl.cvoid wait_until_sent(struct tty_struct * tty)
tty77kernel/chr_drv/tty_ioctl.cTTY_WRITE_FLUSH(tty);
tty78kernel/chr_drv/tty_ioctl.cif (EMPTY(&tty->write_q))
tty80kernel/chr_drv/tty_ioctl.cadd_wait_queue(&tty->write_q.proc_list, &wait);
tty86kernel/chr_drv/tty_ioctl.cTTY_WRITE_FLUSH(tty);
tty87kernel/chr_drv/tty_ioctl.cif (EMPTY(&tty->write_q))
tty92kernel/chr_drv/tty_ioctl.cremove_wait_queue(&tty->write_q.proc_list, &wait);
tty124kernel/chr_drv/tty_ioctl.cstatic int get_termios(struct tty_struct * tty, struct termios * termios)
tty132kernel/chr_drv/tty_ioctl.cput_fs_byte( ((char *)tty->termios)[i] , i+(char *)termios );
tty136kernel/chr_drv/tty_ioctl.cstatic int check_change(struct tty_struct * tty, int channel)
tty141kernel/chr_drv/tty_ioctl.cif (current->tty != channel)
tty143kernel/chr_drv/tty_ioctl.cif (tty->pgrp <= 0 || tty->pgrp == current->pgrp)
tty153kernel/chr_drv/tty_ioctl.cstatic int set_termios(struct tty_struct * tty, struct termios * termios,
tty157kernel/chr_drv/tty_ioctl.cstruct termios old_termios = *tty->termios;
tty159kernel/chr_drv/tty_ioctl.ci = check_change(tty, channel);
tty163kernel/chr_drv/tty_ioctl.c((char *)tty->termios)[i]=get_fs_byte(i+(char *)termios);
tty168kernel/chr_drv/tty_ioctl.cif (IS_A_PTY_MASTER(channel)) tty->termios->c_lflag &= ~ECHO;
tty170kernel/chr_drv/tty_ioctl.cif (tty->set_termios)
tty171kernel/chr_drv/tty_ioctl.c(*tty->set_termios)(tty, &old_termios);
tty176kernel/chr_drv/tty_ioctl.cstatic int get_termio(struct tty_struct * tty, struct termio * termio)
tty184kernel/chr_drv/tty_ioctl.ctmp_termio.c_iflag = tty->termios->c_iflag;
tty185kernel/chr_drv/tty_ioctl.ctmp_termio.c_oflag = tty->termios->c_oflag;
tty186kernel/chr_drv/tty_ioctl.ctmp_termio.c_cflag = tty->termios->c_cflag;
tty187kernel/chr_drv/tty_ioctl.ctmp_termio.c_lflag = tty->termios->c_lflag;
tty188kernel/chr_drv/tty_ioctl.ctmp_termio.c_line = tty->termios->c_line;
tty190kernel/chr_drv/tty_ioctl.ctmp_termio.c_cc[i] = tty->termios->c_cc[i];
tty199kernel/chr_drv/tty_ioctl.cstatic int set_termio(struct tty_struct * tty, struct termio * termio,
tty204kernel/chr_drv/tty_ioctl.cstruct termios old_termios = *tty->termios;
tty206kernel/chr_drv/tty_ioctl.ci = check_change(tty, channel);
tty214kernel/chr_drv/tty_ioctl.c~(tty->termios->c_iflag & IXON))
tty216kernel/chr_drv/tty_ioctl.ctty->status_changed = 1;
tty217kernel/chr_drv/tty_ioctl.ctty->ctrl_status |= TIOCPKT_DOSTOP;
tty221kernel/chr_drv/tty_ioctl.c(tty->termios->c_iflag & IXON))
tty223kernel/chr_drv/tty_ioctl.ctty->status_changed = 1;
tty224kernel/chr_drv/tty_ioctl.ctty->ctrl_status |= TIOCPKT_NOSTOP;
tty227kernel/chr_drv/tty_ioctl.c*(unsigned short *)&tty->termios->c_iflag = tmp_termio.c_iflag;
tty228kernel/chr_drv/tty_ioctl.c*(unsigned short *)&tty->termios->c_oflag = tmp_termio.c_oflag;
tty229kernel/chr_drv/tty_ioctl.c*(unsigned short *)&tty->termios->c_cflag = tmp_termio.c_cflag;
tty230kernel/chr_drv/tty_ioctl.c*(unsigned short *)&tty->termios->c_lflag = tmp_termio.c_lflag;
tty231kernel/chr_drv/tty_ioctl.ctty->termios->c_line = tmp_termio.c_line;
tty233kernel/chr_drv/tty_ioctl.ctty->termios->c_cc[i] = tmp_termio.c_cc[i];
tty235kernel/chr_drv/tty_ioctl.cif (tty->set_termios)
tty236kernel/chr_drv/tty_ioctl.c(*tty->set_termios)(tty, &old_termios);
tty241kernel/chr_drv/tty_ioctl.cstatic int set_window_size(struct tty_struct * tty, struct winsize * ws)
tty248kernel/chr_drv/tty_ioctl.ctmp = (char *) &tty->winsize;
tty258kernel/chr_drv/tty_ioctl.ckill_pg(tty->pgrp, SIGWINCH, 1);
tty262kernel/chr_drv/tty_ioctl.cstatic int get_window_size(struct tty_struct * tty, struct winsize * ws)
tty274kernel/chr_drv/tty_ioctl.cput_fs_byte(((char *) &tty->winsize)[i], tmp);
tty279kernel/chr_drv/tty_ioctl.cstatic int tty_set_ldisc(struct tty_struct *tty, int ldisc)
tty285kernel/chr_drv/tty_ioctl.cif (tty->disc == ldisc)
tty289kernel/chr_drv/tty_ioctl.cwait_until_sent(tty);
tty290kernel/chr_drv/tty_ioctl.cflush_input(tty);
tty291kernel/chr_drv/tty_ioctl.cif (ldiscs[tty->disc].close)
tty292kernel/chr_drv/tty_ioctl.cldiscs[tty->disc].close(tty);
tty295kernel/chr_drv/tty_ioctl.ctty->disc = ldisc;
tty296kernel/chr_drv/tty_ioctl.cif (ldiscs[tty->disc].open)
tty297kernel/chr_drv/tty_ioctl.creturn(ldiscs[tty->disc].open(tty));
tty306kernel/chr_drv/tty_ioctl.cstruct tty_struct * tty;
tty319kernel/chr_drv/tty_ioctl.ctty = TTY_TABLE(dev);
tty320kernel/chr_drv/tty_ioctl.cif (!tty)
tty326kernel/chr_drv/tty_ioctl.ctermios_tty = tty;
tty336kernel/chr_drv/tty_ioctl.cflush_input(tty);
tty339kernel/chr_drv/tty_ioctl.cwait_until_sent(tty);
tty346kernel/chr_drv/tty_ioctl.cflush_input(tty);
tty349kernel/chr_drv/tty_ioctl.cwait_until_sent(tty); /* fallthrough */
tty355kernel/chr_drv/tty_ioctl.ctty->stopped = 1;
tty356kernel/chr_drv/tty_ioctl.cTTY_WRITE_FLUSH(tty);
tty359kernel/chr_drv/tty_ioctl.ctty->stopped = 0;
tty360kernel/chr_drv/tty_ioctl.cTTY_WRITE_FLUSH(tty);
tty363kernel/chr_drv/tty_ioctl.cif (STOP_CHAR(tty))
tty364kernel/chr_drv/tty_ioctl.cput_tty_queue(STOP_CHAR(tty),
tty365kernel/chr_drv/tty_ioctl.c&tty->write_q);
tty368kernel/chr_drv/tty_ioctl.cif (START_CHAR(tty))
tty369kernel/chr_drv/tty_ioctl.cput_tty_queue(START_CHAR(tty),
tty370kernel/chr_drv/tty_ioctl.c&tty->write_q);
tty376kernel/chr_drv/tty_ioctl.cflush_input(tty);
tty378kernel/chr_drv/tty_ioctl.cflush_output(tty);
tty380kernel/chr_drv/tty_ioctl.cflush_input(tty);
tty381kernel/chr_drv/tty_ioctl.cflush_output(tty);
tty390kernel/chr_drv/tty_ioctl.cif ((current->leader && current->tty < 0 &&
tty391kernel/chr_drv/tty_ioctl.ctty->session == 0) ||
tty393kernel/chr_drv/tty_ioctl.ccurrent->tty = dev;
tty394kernel/chr_drv/tty_ioctl.ctty->session = current->session;
tty395kernel/chr_drv/tty_ioctl.ctty->pgrp = current->pgrp;
tty405kernel/chr_drv/tty_ioctl.cif ((current->tty < 0) ||
tty406kernel/chr_drv/tty_ioctl.c(current->tty != termios_dev) ||
tty419kernel/chr_drv/tty_ioctl.cput_fs_long(CHARS(&tty->write_q),
tty426kernel/chr_drv/tty_ioctl.cif (L_CANON(tty) && !tty->secondary.data)
tty429kernel/chr_drv/tty_ioctl.cput_fs_long(CHARS(&tty->secondary),
tty435kernel/chr_drv/tty_ioctl.creturn get_window_size(tty,(struct winsize *) arg);
tty439kernel/chr_drv/tty_ioctl.creturn set_window_size(tty,(struct winsize *) arg);
tty468kernel/chr_drv/tty_ioctl.credirect = tty;
tty480kernel/chr_drv/tty_ioctl.cif (MINOR(file->f_rdev) != current->tty)
tty482kernel/chr_drv/tty_ioctl.ccurrent->tty = -1;
tty484kernel/chr_drv/tty_ioctl.cif (tty->pgrp > 0)
tty485kernel/chr_drv/tty_ioctl.ckill_pg(tty->pgrp, SIGHUP, 0);
tty486kernel/chr_drv/tty_ioctl.ctty->pgrp = -1;
tty487kernel/chr_drv/tty_ioctl.ctty->session = 0;
tty493kernel/chr_drv/tty_ioctl.cput_fs_long(tty->disc, (unsigned long *) arg);
tty497kernel/chr_drv/tty_ioctl.creturn tty_set_ldisc(tty, arg);
tty508kernel/chr_drv/tty_ioctl.ctty->packet = 1;
tty510kernel/chr_drv/tty_ioctl.ctty->packet = 0;
tty515kernel/chr_drv/tty_ioctl.cif (tty->ioctl) {
tty516kernel/chr_drv/tty_ioctl.cretval = (tty->ioctl)(tty, file, cmd, arg);
tty520kernel/chr_drv/tty_ioctl.cif (ldiscs[tty->disc].ioctl) {
tty521kernel/chr_drv/tty_ioctl.cretval = (ldiscs[tty->disc].ioctl)
tty522kernel/chr_drv/tty_ioctl.c(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;
tty215kernel/chr_drv/vt.cflush_input(tty);
tty408kernel/exit.cstruct tty_struct *tty;
tty410kernel/exit.cif (current->tty >= 0) {
tty411kernel/exit.ctty = TTY_TABLE(current->tty);
tty412kernel/exit.cif (tty) {
tty413kernel/exit.cif (tty->pgrp > 0)
tty414kernel/exit.ckill_pg(tty->pgrp, SIGHUP, 1);
tty415kernel/exit.ctty->pgrp = -1;
tty416kernel/exit.ctty->session = 0;
tty421kernel/exit.c(*p)->tty = -1;
tty496kernel/sys.ccurrent->tty = -1;