ioctl_console - Man Page
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 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
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 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
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)
Referenced By
console_codes(4), ioctl(2), ioctl_kd(2), ioctl_tty(2), ioctl_vt(2), termios(3), tty(4), vcs(4).
The man page console_ioctl(4) is an alias of ioctl_console(2).