diff options
author | Alan Cox <alan@redhat.com> | 2008-10-13 05:46:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-13 12:51:45 -0400 |
commit | 11a96d1820113fde0d55c3487b7da7a9031326b8 (patch) | |
tree | dfbb1a6f7a8aa89ea9c5133aa661c5427b6c8b3a /drivers/char/n_tty.c | |
parent | a18992d4652553f65469ac72b54b7fdd4f058277 (diff) |
tty: rename the remaining oddly named n_tty functions
Original idea for this from a patch by Rodolfo Giometti which merges various
bits of PPS support
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/n_tty.c')
-rw-r--r-- | drivers/char/n_tty.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/char/n_tty.c b/drivers/char/n_tty.c index c0285b95cf94..efbfe9612658 100644 --- a/drivers/char/n_tty.c +++ b/drivers/char/n_tty.c | |||
@@ -26,7 +26,7 @@ | |||
26 | * | 26 | * |
27 | * 2002/03/18 Implemented n_tty_wakeup to send SIGIO POLL_OUTs to | 27 | * 2002/03/18 Implemented n_tty_wakeup to send SIGIO POLL_OUTs to |
28 | * waiting writing processes-Sapan Bhatia <sapan@corewars.org>. | 28 | * waiting writing processes-Sapan Bhatia <sapan@corewars.org>. |
29 | * Also fixed a bug in BLOCKING mode where write_chan returns | 29 | * Also fixed a bug in BLOCKING mode where n_tty_write returns |
30 | * EAGAIN | 30 | * EAGAIN |
31 | */ | 31 | */ |
32 | 32 | ||
@@ -358,7 +358,7 @@ static int opost(unsigned char c, struct tty_struct *tty) | |||
358 | * the simple cases normally found and helps to generate blocks of | 358 | * the simple cases normally found and helps to generate blocks of |
359 | * symbols for the console driver and thus improve performance. | 359 | * symbols for the console driver and thus improve performance. |
360 | * | 360 | * |
361 | * Called from write_chan under the tty layer write lock. Relies | 361 | * Called from n_tty_write under the tty layer write lock. Relies |
362 | * on lock_kernel for the tty->column state. | 362 | * on lock_kernel for the tty->column state. |
363 | */ | 363 | */ |
364 | 364 | ||
@@ -1183,7 +1183,7 @@ static inline int input_available_p(struct tty_struct *tty, int amt) | |||
1183 | * @b: user data | 1183 | * @b: user data |
1184 | * @nr: size of data | 1184 | * @nr: size of data |
1185 | * | 1185 | * |
1186 | * Helper function to speed up read_chan. It is only called when | 1186 | * Helper function to speed up n_tty_read. It is only called when |
1187 | * ICANON is off; it copies characters straight from the tty queue to | 1187 | * ICANON is off; it copies characters straight from the tty queue to |
1188 | * user space directly. It can be profitably called twice; once to | 1188 | * user space directly. It can be profitably called twice; once to |
1189 | * drain the space from the tail pointer to the (physical) end of the | 1189 | * drain the space from the tail pointer to the (physical) end of the |
@@ -1250,7 +1250,7 @@ static int job_control(struct tty_struct *tty, struct file *file) | |||
1250 | if (file->f_op->write != redirected_tty_write && | 1250 | if (file->f_op->write != redirected_tty_write && |
1251 | current->signal->tty == tty) { | 1251 | current->signal->tty == tty) { |
1252 | if (!tty->pgrp) | 1252 | if (!tty->pgrp) |
1253 | printk(KERN_ERR "read_chan: no tty->pgrp!\n"); | 1253 | printk(KERN_ERR "n_tty_read: no tty->pgrp!\n"); |
1254 | else if (task_pgrp(current) != tty->pgrp) { | 1254 | else if (task_pgrp(current) != tty->pgrp) { |
1255 | if (is_ignored(SIGTTIN) || | 1255 | if (is_ignored(SIGTTIN) || |
1256 | is_current_pgrp_orphaned()) | 1256 | is_current_pgrp_orphaned()) |
@@ -1265,7 +1265,7 @@ static int job_control(struct tty_struct *tty, struct file *file) | |||
1265 | 1265 | ||
1266 | 1266 | ||
1267 | /** | 1267 | /** |
1268 | * read_chan - read function for tty | 1268 | * n_tty_read - read function for tty |
1269 | * @tty: tty device | 1269 | * @tty: tty device |
1270 | * @file: file object | 1270 | * @file: file object |
1271 | * @buf: userspace buffer pointer | 1271 | * @buf: userspace buffer pointer |
@@ -1279,7 +1279,7 @@ static int job_control(struct tty_struct *tty, struct file *file) | |||
1279 | * This code must be sure never to sleep through a hangup. | 1279 | * This code must be sure never to sleep through a hangup. |
1280 | */ | 1280 | */ |
1281 | 1281 | ||
1282 | static ssize_t read_chan(struct tty_struct *tty, struct file *file, | 1282 | static ssize_t n_tty_read(struct tty_struct *tty, struct file *file, |
1283 | unsigned char __user *buf, size_t nr) | 1283 | unsigned char __user *buf, size_t nr) |
1284 | { | 1284 | { |
1285 | unsigned char __user *b = buf; | 1285 | unsigned char __user *b = buf; |
@@ -1481,7 +1481,7 @@ do_it_again: | |||
1481 | } | 1481 | } |
1482 | 1482 | ||
1483 | /** | 1483 | /** |
1484 | * write_chan - write function for tty | 1484 | * n_tty_write - write function for tty |
1485 | * @tty: tty device | 1485 | * @tty: tty device |
1486 | * @file: file object | 1486 | * @file: file object |
1487 | * @buf: userspace buffer pointer | 1487 | * @buf: userspace buffer pointer |
@@ -1495,7 +1495,7 @@ do_it_again: | |||
1495 | * This code must be sure never to sleep through a hangup. | 1495 | * This code must be sure never to sleep through a hangup. |
1496 | */ | 1496 | */ |
1497 | 1497 | ||
1498 | static ssize_t write_chan(struct tty_struct *tty, struct file *file, | 1498 | static ssize_t n_tty_write(struct tty_struct *tty, struct file *file, |
1499 | const unsigned char *buf, size_t nr) | 1499 | const unsigned char *buf, size_t nr) |
1500 | { | 1500 | { |
1501 | const unsigned char *b = buf; | 1501 | const unsigned char *b = buf; |
@@ -1569,7 +1569,7 @@ break_out: | |||
1569 | } | 1569 | } |
1570 | 1570 | ||
1571 | /** | 1571 | /** |
1572 | * normal_poll - poll method for N_TTY | 1572 | * n_tty_poll - poll method for N_TTY |
1573 | * @tty: terminal device | 1573 | * @tty: terminal device |
1574 | * @file: file accessing it | 1574 | * @file: file accessing it |
1575 | * @wait: poll table | 1575 | * @wait: poll table |
@@ -1582,7 +1582,7 @@ break_out: | |||
1582 | * Called without the kernel lock held - fine | 1582 | * Called without the kernel lock held - fine |
1583 | */ | 1583 | */ |
1584 | 1584 | ||
1585 | static unsigned int normal_poll(struct tty_struct *tty, struct file *file, | 1585 | static unsigned int n_tty_poll(struct tty_struct *tty, struct file *file, |
1586 | poll_table *wait) | 1586 | poll_table *wait) |
1587 | { | 1587 | { |
1588 | unsigned int mask = 0; | 1588 | unsigned int mask = 0; |
@@ -1655,11 +1655,11 @@ struct tty_ldisc_ops tty_ldisc_N_TTY = { | |||
1655 | .close = n_tty_close, | 1655 | .close = n_tty_close, |
1656 | .flush_buffer = n_tty_flush_buffer, | 1656 | .flush_buffer = n_tty_flush_buffer, |
1657 | .chars_in_buffer = n_tty_chars_in_buffer, | 1657 | .chars_in_buffer = n_tty_chars_in_buffer, |
1658 | .read = read_chan, | 1658 | .read = n_tty_read, |
1659 | .write = write_chan, | 1659 | .write = n_tty_write, |
1660 | .ioctl = n_tty_ioctl, | 1660 | .ioctl = n_tty_ioctl, |
1661 | .set_termios = n_tty_set_termios, | 1661 | .set_termios = n_tty_set_termios, |
1662 | .poll = normal_poll, | 1662 | .poll = n_tty_poll, |
1663 | .receive_buf = n_tty_receive_buf, | 1663 | .receive_buf = n_tty_receive_buf, |
1664 | .write_wakeup = n_tty_write_wakeup | 1664 | .write_wakeup = n_tty_write_wakeup |
1665 | }; | 1665 | }; |