Loading drivers/char/n_tty.c +13 −13 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ * * 2002/03/18 Implemented n_tty_wakeup to send SIGIO POLL_OUTs to * waiting writing processes-Sapan Bhatia <sapan@corewars.org>. * Also fixed a bug in BLOCKING mode where write_chan returns * Also fixed a bug in BLOCKING mode where n_tty_write returns * EAGAIN */ Loading Loading @@ -358,7 +358,7 @@ static int opost(unsigned char c, struct tty_struct *tty) * the simple cases normally found and helps to generate blocks of * symbols for the console driver and thus improve performance. * * Called from write_chan under the tty layer write lock. Relies * Called from n_tty_write under the tty layer write lock. Relies * on lock_kernel for the tty->column state. */ Loading Loading @@ -1183,7 +1183,7 @@ static inline int input_available_p(struct tty_struct *tty, int amt) * @b: user data * @nr: size of data * * Helper function to speed up read_chan. It is only called when * Helper function to speed up n_tty_read. It is only called when * ICANON is off; it copies characters straight from the tty queue to * user space directly. It can be profitably called twice; once to * drain the space from the tail pointer to the (physical) end of the Loading Loading @@ -1250,7 +1250,7 @@ static int job_control(struct tty_struct *tty, struct file *file) if (file->f_op->write != redirected_tty_write && current->signal->tty == tty) { if (!tty->pgrp) printk(KERN_ERR "read_chan: no tty->pgrp!\n"); printk(KERN_ERR "n_tty_read: no tty->pgrp!\n"); else if (task_pgrp(current) != tty->pgrp) { if (is_ignored(SIGTTIN) || is_current_pgrp_orphaned()) Loading @@ -1265,7 +1265,7 @@ static int job_control(struct tty_struct *tty, struct file *file) /** * read_chan - read function for tty * n_tty_read - read function for tty * @tty: tty device * @file: file object * @buf: userspace buffer pointer Loading @@ -1279,7 +1279,7 @@ static int job_control(struct tty_struct *tty, struct file *file) * This code must be sure never to sleep through a hangup. */ static ssize_t read_chan(struct tty_struct *tty, struct file *file, static ssize_t n_tty_read(struct tty_struct *tty, struct file *file, unsigned char __user *buf, size_t nr) { unsigned char __user *b = buf; Loading Loading @@ -1481,7 +1481,7 @@ static ssize_t read_chan(struct tty_struct *tty, struct file *file, } /** * write_chan - write function for tty * n_tty_write - write function for tty * @tty: tty device * @file: file object * @buf: userspace buffer pointer Loading @@ -1495,7 +1495,7 @@ static ssize_t read_chan(struct tty_struct *tty, struct file *file, * This code must be sure never to sleep through a hangup. */ static ssize_t write_chan(struct tty_struct *tty, struct file *file, static ssize_t n_tty_write(struct tty_struct *tty, struct file *file, const unsigned char *buf, size_t nr) { const unsigned char *b = buf; Loading Loading @@ -1569,7 +1569,7 @@ static ssize_t write_chan(struct tty_struct *tty, struct file *file, } /** * normal_poll - poll method for N_TTY * n_tty_poll - poll method for N_TTY * @tty: terminal device * @file: file accessing it * @wait: poll table Loading @@ -1582,7 +1582,7 @@ static ssize_t write_chan(struct tty_struct *tty, struct file *file, * Called without the kernel lock held - fine */ static unsigned int normal_poll(struct tty_struct *tty, struct file *file, static unsigned int n_tty_poll(struct tty_struct *tty, struct file *file, poll_table *wait) { unsigned int mask = 0; Loading Loading @@ -1655,11 +1655,11 @@ struct tty_ldisc_ops tty_ldisc_N_TTY = { .close = n_tty_close, .flush_buffer = n_tty_flush_buffer, .chars_in_buffer = n_tty_chars_in_buffer, .read = read_chan, .write = write_chan, .read = n_tty_read, .write = n_tty_write, .ioctl = n_tty_ioctl, .set_termios = n_tty_set_termios, .poll = normal_poll, .poll = n_tty_poll, .receive_buf = n_tty_receive_buf, .write_wakeup = n_tty_write_wakeup }; Loading Loading
drivers/char/n_tty.c +13 −13 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ * * 2002/03/18 Implemented n_tty_wakeup to send SIGIO POLL_OUTs to * waiting writing processes-Sapan Bhatia <sapan@corewars.org>. * Also fixed a bug in BLOCKING mode where write_chan returns * Also fixed a bug in BLOCKING mode where n_tty_write returns * EAGAIN */ Loading Loading @@ -358,7 +358,7 @@ static int opost(unsigned char c, struct tty_struct *tty) * the simple cases normally found and helps to generate blocks of * symbols for the console driver and thus improve performance. * * Called from write_chan under the tty layer write lock. Relies * Called from n_tty_write under the tty layer write lock. Relies * on lock_kernel for the tty->column state. */ Loading Loading @@ -1183,7 +1183,7 @@ static inline int input_available_p(struct tty_struct *tty, int amt) * @b: user data * @nr: size of data * * Helper function to speed up read_chan. It is only called when * Helper function to speed up n_tty_read. It is only called when * ICANON is off; it copies characters straight from the tty queue to * user space directly. It can be profitably called twice; once to * drain the space from the tail pointer to the (physical) end of the Loading Loading @@ -1250,7 +1250,7 @@ static int job_control(struct tty_struct *tty, struct file *file) if (file->f_op->write != redirected_tty_write && current->signal->tty == tty) { if (!tty->pgrp) printk(KERN_ERR "read_chan: no tty->pgrp!\n"); printk(KERN_ERR "n_tty_read: no tty->pgrp!\n"); else if (task_pgrp(current) != tty->pgrp) { if (is_ignored(SIGTTIN) || is_current_pgrp_orphaned()) Loading @@ -1265,7 +1265,7 @@ static int job_control(struct tty_struct *tty, struct file *file) /** * read_chan - read function for tty * n_tty_read - read function for tty * @tty: tty device * @file: file object * @buf: userspace buffer pointer Loading @@ -1279,7 +1279,7 @@ static int job_control(struct tty_struct *tty, struct file *file) * This code must be sure never to sleep through a hangup. */ static ssize_t read_chan(struct tty_struct *tty, struct file *file, static ssize_t n_tty_read(struct tty_struct *tty, struct file *file, unsigned char __user *buf, size_t nr) { unsigned char __user *b = buf; Loading Loading @@ -1481,7 +1481,7 @@ static ssize_t read_chan(struct tty_struct *tty, struct file *file, } /** * write_chan - write function for tty * n_tty_write - write function for tty * @tty: tty device * @file: file object * @buf: userspace buffer pointer Loading @@ -1495,7 +1495,7 @@ static ssize_t read_chan(struct tty_struct *tty, struct file *file, * This code must be sure never to sleep through a hangup. */ static ssize_t write_chan(struct tty_struct *tty, struct file *file, static ssize_t n_tty_write(struct tty_struct *tty, struct file *file, const unsigned char *buf, size_t nr) { const unsigned char *b = buf; Loading Loading @@ -1569,7 +1569,7 @@ static ssize_t write_chan(struct tty_struct *tty, struct file *file, } /** * normal_poll - poll method for N_TTY * n_tty_poll - poll method for N_TTY * @tty: terminal device * @file: file accessing it * @wait: poll table Loading @@ -1582,7 +1582,7 @@ static ssize_t write_chan(struct tty_struct *tty, struct file *file, * Called without the kernel lock held - fine */ static unsigned int normal_poll(struct tty_struct *tty, struct file *file, static unsigned int n_tty_poll(struct tty_struct *tty, struct file *file, poll_table *wait) { unsigned int mask = 0; Loading Loading @@ -1655,11 +1655,11 @@ struct tty_ldisc_ops tty_ldisc_N_TTY = { .close = n_tty_close, .flush_buffer = n_tty_flush_buffer, .chars_in_buffer = n_tty_chars_in_buffer, .read = read_chan, .write = write_chan, .read = n_tty_read, .write = n_tty_write, .ioctl = n_tty_ioctl, .set_termios = n_tty_set_termios, .poll = normal_poll, .poll = n_tty_poll, .receive_buf = n_tty_receive_buf, .write_wakeup = n_tty_write_wakeup }; Loading