Scroll to navigation

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 console terminals and virtual consoles.

See ioctl_kd(2).
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)

2024-06-14 Linux man-pages (unreleased)