taglinefilesource code
queue103include/linux/tty.hextern void put_tty_queue(char c, struct tty_queue * queue);
queue104include/linux/tty.hextern int get_tty_queue(struct tty_queue * queue);
queue66kernel/chr_drv/serial.cstruct tty_queue * queue = info->tty->write_q;
queue73kernel/chr_drv/serial.cif (queue->tail == queue->head)
queue75kernel/chr_drv/serial.cc = queue->buf[queue->tail];
queue76kernel/chr_drv/serial.cqueue->tail++;
queue77kernel/chr_drv/serial.cqueue->tail &= TTY_BUF_SIZE-1;
queue85kernel/chr_drv/serial.cif (LEFT(queue) > WAKEUP_CHARS)
queue86kernel/chr_drv/serial.cwake_up(&queue->proc_list);
queue92kernel/chr_drv/serial.cstruct tty_queue * queue = info->tty->read_q;
queue93kernel/chr_drv/serial.cint head = queue->head;
queue94kernel/chr_drv/serial.cint maxhead = (queue->tail-1) & (TTY_BUF_SIZE-1);
queue98kernel/chr_drv/serial.cqueue->buf[head] = inb(port);
queue104kernel/chr_drv/serial.cqueue->head = head;
queue57kernel/chr_drv/tty_io.cvoid inline put_tty_queue(char c, struct tty_queue * queue)
queue63kernel/chr_drv/tty_io.chead = (queue->head + 1) & (TTY_BUF_SIZE-1);
queue64kernel/chr_drv/tty_io.cif (head != queue->tail) {
queue65kernel/chr_drv/tty_io.cqueue->buf[queue->head] = c;
queue66kernel/chr_drv/tty_io.cqueue->head = head;
queue71kernel/chr_drv/tty_io.cint inline get_tty_queue(struct tty_queue * queue)
queue77kernel/chr_drv/tty_io.cif (queue->tail != queue->head) {
queue78kernel/chr_drv/tty_io.cresult = 0xff & queue->buf[queue->tail];
queue79kernel/chr_drv/tty_io.cqueue->tail = (queue->tail + 1) & (TTY_BUF_SIZE-1);
queue118kernel/chr_drv/tty_io.cstatic void sleep_if_empty(struct tty_queue * queue)
queue121kernel/chr_drv/tty_io.cwhile (!(current->signal & ~current->blocked) && EMPTY(queue))
queue122kernel/chr_drv/tty_io.cinterruptible_sleep_on(&queue->proc_list);
queue24kernel/chr_drv/tty_ioctl.cstatic void flush(struct tty_queue * queue)
queue26kernel/chr_drv/tty_ioctl.cif (queue) {
queue28kernel/chr_drv/tty_ioctl.cqueue->head = queue->tail;
queue30kernel/chr_drv/tty_ioctl.cwake_up(&queue->proc_list);