ioctl_console(2) System Calls Manual ioctl_console(2)
NAME
ioctl_console - ioctls for console terminal and virtual consoles
SYNOPSIS
#include <sys/ioctl.h>
int ioctl(int fd, unsigned long op, ...);
DESCRIPTION
The following Linux-specific ioctl(2) operations are supported for con-
sole 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
On success, 0 is returned (except where indicated). On failure, -1 is
returned, and errno is set to indicate the error.
STANDARDS
Linux.
CAVEATS
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 de-
scribes 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
ioctl(2), TIOCLINUX(2const), ioctl_kd(2), ioctl_vt(2), dumpkeys(1),
kbd_mode(1), loadkeys(1), mknod(1), setleds(1), setmetamode(1), ex-
ecve(2), fcntl(2), ioctl_tty(2), ioperm(2), termios(3), con-
sole_codes(4), mt(4), sd(4), tty(4), ttyS(4), vcs(4), vcsa(4),
charsets(7), mapscrn(8), resizecons(8), setfont(8)
Linux man-pages 6.9.1 2024-06-14 ioctl_console(2)
Generated by dwww version 1.16 on Tue Dec 16 03:56:20 CET 2025.