]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
ioctl_console.2: document all extant TIOCLINUX subcodes as of 6.0 (2.6.17)
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Fri, 2 Sep 2022 13:07:16 +0000 (15:07 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Fri, 2 Sep 2022 19:05:55 +0000 (21:05 +0200)
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Cc: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man2/ioctl_console.2

index 0c25edf67794df0bf1a717e575c06a932b150d0f..145e9808144b1b1f79f07ff585da76bdda701166 100644 (file)
@@ -787,8 +787,49 @@ blank_timer times out, then you choose this option.
 Powering down frequently will damage the monitor.)
 (Since Linux 1.1.76.)
 .RE
+.TP
+.BR TIOCLINUX ", " subcode = TIOCL_SETKMSGREDIRECT
+Change target of kernel messages ("console"):
+by default, and if this is set to
+.BR 0 ,
+messages are written to the currently active VT.
+The VT to write to is a single byte following
+.BR subcode .
+(Since Linux 2.5.36.)
+.TP
+.BR TIOCLINUX ", " subcode = TIOCL_GETFGCONSOLE
+Returns the number of VT currently in foreground.
+(Since Linux 2.5.36.)
+.TP
+.BR TIOCLINUX ", " subcode = TIOCL_SCROLLCONSOLE
+Scroll the foreground VT by the specified amount of
+.I lines
+down,
+or half the screen if
+.BR 0 .
+.I lines
+is *(((int32_t *)&subcode) + 1).
+(Since Linux 2.5.67.)
+.TP
+.BR TIOCLINUX ", " subcode = TIOCL_BLANKSCREEN
+Blank the foreground VT, ignoring "pokes" (typing):
+can only be unblanked explicitly (by switching VTs, to text mode, etc.).
+(Since Linux 2.5.71.)
+.TP
+.BR TIOCLINUX ", " subcode = TIOCL_BLANKEDSCREEN
+Returns the number of VT currently blanked,
+.B 0
+if none.
+(Since Linux 2.5.71.)
+.TP
+.BR TIOCLINUX ", " subcode = 16
+Never used.
+.TP
+.BR TIOCLINUX ", " subcode = TIOCL_GETKMSGREDIRECT
+Returns target of kernel messages.
+(Since Linux 2.6.17.)
 .SH RETURN VALUE
-On success, 0 is returned.
+On success, 0 is returned (except where indicated).
 On failure, \-1 is returned, and
 .I errno
 is set to indicate the error.