~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/vt.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef _UAPI_LINUX_VT_H
  3 #define _UAPI_LINUX_VT_H
  4 
  5 
  6 /*
  7  * These constants are also useful for user-level apps (e.g., VC
  8  * resizing).
  9  */
 10 #define MIN_NR_CONSOLES 1       /* must be at least 1 */
 11 #define MAX_NR_CONSOLES 63      /* serial lines start at 64 */
 12                 /* Note: the ioctl VT_GETSTATE does not work for
 13                    consoles 16 and higher (since it returns a short) */
 14 
 15 /* 0x56 is 'V', to avoid collision with termios and kd */
 16 
 17 #define VT_OPENQRY      0x5600  /* find available vt */
 18 
 19 struct vt_mode {
 20         char mode;              /* vt mode */
 21         char waitv;             /* if set, hang on writes if not active */
 22         short relsig;           /* signal to raise on release req */
 23         short acqsig;           /* signal to raise on acquisition */
 24         short frsig;            /* unused (set to 0) */
 25 };
 26 #define VT_GETMODE      0x5601  /* get mode of active vt */
 27 #define VT_SETMODE      0x5602  /* set mode of active vt */
 28 #define         VT_AUTO         0x00    /* auto vt switching */
 29 #define         VT_PROCESS      0x01    /* process controls switching */
 30 #define         VT_ACKACQ       0x02    /* acknowledge switch */
 31 
 32 struct vt_stat {
 33         unsigned short v_active;        /* active vt */
 34         unsigned short v_signal;        /* signal to send */
 35         unsigned short v_state;         /* vt bitmask */
 36 };
 37 #define VT_GETSTATE     0x5603  /* get global vt state info */
 38 #define VT_SENDSIG      0x5604  /* signal to send to bitmask of vts */
 39 
 40 #define VT_RELDISP      0x5605  /* release display */
 41 
 42 #define VT_ACTIVATE     0x5606  /* make vt active */
 43 #define VT_WAITACTIVE   0x5607  /* wait for vt active */
 44 #define VT_DISALLOCATE  0x5608  /* free memory associated to vt */
 45 
 46 struct vt_sizes {
 47         unsigned short v_rows;          /* number of rows */
 48         unsigned short v_cols;          /* number of columns */
 49         unsigned short v_scrollsize;    /* number of lines of scrollback */
 50 };
 51 #define VT_RESIZE       0x5609  /* set kernel's idea of screensize */
 52 
 53 struct vt_consize {
 54         unsigned short v_rows;  /* number of rows */
 55         unsigned short v_cols;  /* number of columns */
 56         unsigned short v_vlin;  /* number of pixel rows on screen */
 57         unsigned short v_clin;  /* number of pixel rows per character */
 58         unsigned short v_vcol;  /* number of pixel columns on screen */
 59         unsigned short v_ccol;  /* number of pixel columns per character */
 60 };
 61 #define VT_RESIZEX      0x560A  /* set kernel's idea of screensize + more */
 62 #define VT_LOCKSWITCH   0x560B  /* disallow vt switching */
 63 #define VT_UNLOCKSWITCH 0x560C  /* allow vt switching */
 64 #define VT_GETHIFONTMASK 0x560D  /* return hi font mask */
 65 
 66 struct vt_event {
 67         unsigned int event;
 68 #define VT_EVENT_SWITCH         0x0001  /* Console switch */
 69 #define VT_EVENT_BLANK          0x0002  /* Screen blank */
 70 #define VT_EVENT_UNBLANK        0x0004  /* Screen unblank */
 71 #define VT_EVENT_RESIZE         0x0008  /* Resize display */
 72 #define VT_MAX_EVENT            0x000F
 73         unsigned int oldev;             /* Old console */
 74         unsigned int newev;             /* New console (if changing) */
 75         unsigned int pad[4];            /* Padding for expansion */
 76 };
 77 
 78 #define VT_WAITEVENT    0x560E  /* Wait for an event */
 79 
 80 struct vt_setactivate {
 81         unsigned int console;
 82         struct vt_mode mode;
 83 };
 84 
 85 #define VT_SETACTIVATE  0x560F  /* Activate and set the mode of a console */
 86 
 87 #endif /* _UAPI_LINUX_VT_H */
 88 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php