taglinefilesource code
queue47include/linux/tty.hstatic inline void PUTCH(char c, struct tty_queue * queue)
queue52include/linux/tty.hhead = (queue->head + 1) & (TTY_BUF_SIZE-1);
queue53include/linux/tty.hif (head != queue->tail) {
queue54include/linux/tty.hqueue->buf[queue->head] = c;
queue55include/linux/tty.hqueue->head = head;
queue60include/linux/tty.hstatic inline int GETCH(struct tty_queue * queue)
queue64include/linux/tty.hif (queue->tail != queue->head) {
queue65include/linux/tty.hresult = 0xff & queue->buf[queue->tail];
queue66include/linux/tty.hqueue->tail = (queue->tail + 1) & (TTY_BUF_SIZE-1);
queue181include/linux/tty.hextern void flush(struct tty_queue * queue);
queue75kernel/chr_drv/tty_io.cstatic void sleep_if_empty(struct tty_queue * queue)
queue78kernel/chr_drv/tty_io.cwhile (!(current->signal & ~current->blocked) && EMPTY(queue))
queue79kernel/chr_drv/tty_io.cinterruptible_sleep_on(&queue->proc_list);
queue45kernel/chr_drv/tty_ioctl.cvoid flush(struct tty_queue * queue)
queue47kernel/chr_drv/tty_ioctl.cif (queue) {
queue49kernel/chr_drv/tty_ioctl.cqueue->head = queue->tail;
queue51kernel/chr_drv/tty_ioctl.cwake_up(&queue->proc_list);