ioctl_vt(2) System Calls Manual ioctl_vt(2) ioctl_vt - ioctl #include /* Definition of VT_* constants */ #include int ioctl(int fd, unsigned long op, void *argp); ioctl(2) . VT_OPENQRY ( ). argp int vt (1 <= *argp <= MAX_NR_CONSOLES). VT_GETMODE vt . argp struct vt_mode { char mode; /* vt mode */ char waitv; /* if set, hang on writes if not active */ short relsig; /* signal to raise on release op */ short acqsig; /* signal to raise on acquisition */ short frsig; /* unused (set to 0) */ }; vt . mode : VT_AUTO vt VT_PROCESS VT_ACKACQ VT_SETMODE vt . argp struct vt_mode. VT_GETSTATE vt . argp struct vt_stat { unsigned short v_active; /* active vt */ unsigned short v_signal; /* signal to send */ unsigned short v_state; /* vt bit mask */ }; vt v_state. ( 1.0 1.1.92.) VT_RELDISP . VT_ACTIVATE vt argp (1 <= argp <= MAX_NR_CONSOLES). VT_WAITACTIVE vt argp. VT_DISALLOCATE vt argp. ( 1.1.54.) VT_RESIZE . argp struct vt_sizes { unsigned short v_rows; /* # rows */ unsigned short v_cols; /* # columns */ unsigned short v_scrollsize; /* no longer used */ }; . resizecons(8). ( 1.1.54.) VT_RESIZEX . argp struct vt_consize { unsigned short v_rows; /* number of rows */ unsigned short v_cols; /* number of columns */ unsigned short v_vlin; /* number of pixel rows on screen */ unsigned short v_clin; /* number of pixel rows per character */ unsigned short v_vcol; /* number of pixel columns on screen */ unsigned short v_ccol; /* number of pixel columns per character */ }; " " . . resizecons(8). ( 1.3.3.) VT_GETCONSIZECSRPOS . argp struct vt_consizecsrpos { __u16 con_rows; /* */ __u16 con_cols; /* */ __u16 csr_row; /* */ __u16 csr_col; /* */ }; ( 6.16.) 0 ( ). -1 errno . EINVAL argp . . ioctl(2) ioctl_console(2) 3 . . : . 6.18 8 2026 ioctl_vt(2)