aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorWerner Fink <werner@suse.de>2010-12-03 12:48:23 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-16 16:18:28 -0800
commitb7b8de087384cc1954a8cd075af3f9e5977caa2e (patch)
treee362fe2c886c610caa9bd45fead9c4ae4789529e /arch/alpha
parenttty: add 'active' sysfs attribute to tty0 and console device (diff)
downloadlinux-dev-b7b8de087384cc1954a8cd075af3f9e5977caa2e.tar.xz
linux-dev-b7b8de087384cc1954a8cd075af3f9e5977caa2e.zip
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 'arch/alpha')
-rw-r--r--arch/alpha/include/asm/ioctls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/alpha/include/asm/ioctls.h b/arch/alpha/include/asm/ioctls.h
index 59617c3c2be6..034b6cf5d9f3 100644
--- a/arch/alpha/include/asm/ioctls.h
+++ b/arch/alpha/include/asm/ioctls.h
@@ -92,6 +92,7 @@
#define TIOCGSID 0x5429 /* Return the session ID of FD */
#define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */
#define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */
+#define TIOCGDEV _IOR('T',0x32, unsigned int) /* Get primary device node of /dev/console */
#define TIOCSIG _IOW('T',0x36, int) /* Generate signal on Pty slave */
#define TIOCSERCONFIG 0x5453