aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorWerner Fink <werner@suse.de>2010-12-03 06:48:23 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-16 19:18:28 -0500
commitb7b8de087384cc1954a8cd075af3f9e5977caa2e (patch)
treee362fe2c886c610caa9bd45fead9c4ae4789529e /drivers/tty
parentfbc92a3455577ab17615cbcb91826399061bd789 (diff)
TTY: Add tty ioctl to figure device node of the system console.
This has been in the SuSE kernels for a very long time. Signed-off-by: Werner Fink <werner@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/tty_io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index be5ab4ac0b93..d2333ab23d07 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -2618,6 +2618,11 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
2618 return put_user(tty->ldisc->ops->num, (int __user *)p); 2618 return put_user(tty->ldisc->ops->num, (int __user *)p);
2619 case TIOCSETD: 2619 case TIOCSETD:
2620 return tiocsetd(tty, p); 2620 return tiocsetd(tty, p);
2621 case TIOCGDEV:
2622 {
2623 unsigned int ret = new_encode_dev(tty_devnum(real_tty));
2624 return put_user(ret, (unsigned int __user *)p);
2625 }
2621 /* 2626 /*
2622 * Break handling 2627 * Break handling
2623 */ 2628 */