]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/vt.h
[PATCH] vt: Remove VT-specific declarations and definitions from tty.h
[karo-tx-linux.git] / include / linux / vt.h
index 9f95b0bea5b3a86951a6e85d2b218785234a004c..8ab334a4822215be6fbc556b9447f01cb9180e4d 100644 (file)
@@ -1,6 +1,16 @@
 #ifndef _LINUX_VT_H
 #define _LINUX_VT_H
 
+/*
+ * These constants are also useful for user-level apps (e.g., VC
+ * resizing).
+ */
+#define MIN_NR_CONSOLES 1       /* must be at least 1 */
+#define MAX_NR_CONSOLES        63      /* serial lines start at 64 */
+#define MAX_NR_USER_CONSOLES 63        /* must be root to allocate above this */
+               /* Note: the ioctl VT_GETSTATE does not work for
+                  consoles 16 and higher (since it returns a short) */
+
 /* 0x56 is 'V', to avoid collision with termios and kd */
 
 #define VT_OPENQRY     0x5600  /* find available vt */