ioctl_console(2) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | STANDARDS | CAVEATS | SEE ALSO | COLOPHON

ioctl_console(2)           System Calls Manual          ioctl_console(2)

NAME         top

       ioctl_console - ioctls for console terminal and virtual consoles

SYNOPSIS         top

       #include <sys/ioctl.h>

       int ioctl(int fd, unsigned long op, ...);

DESCRIPTION         top

       The following Linux-specific ioctl(2) operations are supported
       for console terminals and virtual consoles.

       KDGETLED(2const)
       KDSETLED(2const)
       KDGKBLED(2const)
       KDSKBLED(2const)
       KDGKBTYPE(2const)
       KDADDIO(2const)
       KDDELIO(2const)
       KDENABIO(2const)
       KDDISABIO(2const)
       KDSETMODE(2const)
       KDGETMODE(2const)
       KDMKTONE(2const)
       KIOCSOUND(2const)
       GIO_CMAP(2const)
       PIO_CMAP(2const)
       GIO_FONT(2const)
       GIO_FONTX(2const)
       PIO_FONT(2const)
       PIO_FONTX(2const)
       PIO_FONTRESET(2const)
       GIO_SCRNMAP(2const)
       GIO_UNISCRNMAP(2const)
       PIO_SCRNMAP(2const)
       PIO_UNISCRNMAP(2const)
       GIO_UNIMAP(2const)
       PIO_UNIMAP(2const)
       PIO_UNIMAPCLR(2const)
       KDGKBMODE(2const)
       KDSKBMODE(2const)
       KDGKBMETA(2const)
       KDSKBMETA(2const)
       KDGKBENT(2const)
       KDSKBENT(2const)
       KDGKBSENT(2const)
       KDSKBSENT(2const)
       KDGKBDIACR(2const)
       KDGETKEYCODE(2const)
       KDSETKEYCODE(2const)
       KDSIGACCEPT(2const)
              See ioctl_kd(2).

       TIOCLINUX(2const)

       VT_OPENQRY(2const)
       VT_GETMODE(2const)
       VT_SETMODE(2const)
       VT_GETSTATE(2const)
       VT_RELDISP(2const)
       VT_ACTIVATE(2const)
       VT_WAITACTIVE(2const)
       VT_DISALLOCATE(2const)
       VT_RESIZE(2const)
       VT_RESIZEX(2const)
              See ioctl_vt(2).

RETURN VALUE         top

       On success, 0 is returned (except where indicated).  On failure,
       -1 is returned, and errno is set to indicate the error.

STANDARDS         top

       Linux.

CAVEATS         top

       Do not regard this man page as documentation of the Linux console
       ioctls.  This is provided for the curious only, as an alternative
       to reading the source.  Ioctl's are undocumented Linux internals,
       liable to be changed without warning.  (And indeed, this page
       more or less describes the situation as of kernel version 1.1.94;
       there are many minor and not-so-minor differences with earlier
       versions.)

       Very often, ioctls are introduced for communication between the
       kernel and one particular well-known program (fdisk, hdparm,
       setserial, tunelp, loadkeys, selection, setfont, etc.), and their
       behavior will be changed when required by this particular
       program.

SEE ALSO         top

       ioctl(2), TIOCLINUX(2const), ioctl_kd(2), ioctl_vt(2),
       dumpkeys(1), kbd_mode(1), loadkeys(1), mknod(1), setleds(1),
       setmetamode(1), execve(2), fcntl(2), ioctl_tty(2), ioperm(2),
       termios(3), console_codes(4), mt(4), sd(4), tty(4), ttyS(4),
       vcs(4), vcsa(4), charsets(7), mapscrn(8), resizecons(8),
       setfont(8)

COLOPHON         top

       This page is part of the man-pages (Linux kernel and C library
       user-space interface documentation) project.  Information about
       the project can be found at 
       ⟨https://www.kernel.org/doc/man-pages/⟩.  If you have a bug report
       for this manual page, see
       ⟨https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING⟩.
       This page was obtained from the tarball man-pages-6.9.1.tar.gz
       fetched from
       ⟨https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/⟩ on
       2024-06-26.  If you discover any rendering problems in this HTML
       version of the page, or you believe there is a better or more up-
       to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not
       part of the original manual page), send a mail to
       man-pages@man7.org

Linux man-pages 6.9.1          2024-06-14               ioctl_console(2)

Pages that refer to this page: ioctl(2)ioctl_kd(2)ioctl_tty(2)ioctl_vt(2)TIOCLINUX(2const)termios(3)console_codes(4)tty(4)vcs(4)