xref: /linux-6.15/include/linux/vt.h (revision b2441318)
1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
21da177e4SLinus Torvalds #ifndef _LINUX_VT_H
31da177e4SLinus Torvalds #define _LINUX_VT_H
41da177e4SLinus Torvalds 
5607ca46eSDavid Howells #include <uapi/linux/vt.h>
6b293d758SSamuel Thibault 
75d0bb2c4SBernhard Walle 
8a376d3d6SAmerigo Wang /* Virtual Terminal events. */
9a376d3d6SAmerigo Wang #define VT_ALLOCATE		0x0001 /* Console got allocated */
10a376d3d6SAmerigo Wang #define VT_DEALLOCATE		0x0002 /* Console will be deallocated */
11a376d3d6SAmerigo Wang #define VT_WRITE		0x0003 /* A char got output */
12a376d3d6SAmerigo Wang #define VT_UPDATE		0x0004 /* A bigger update occurred */
13a376d3d6SAmerigo Wang #define VT_PREWRITE		0x0005 /* A char is about to be written to the console */
14a376d3d6SAmerigo Wang 
155ada918bSBernhard Walle #ifdef CONFIG_VT_CONSOLE
165ada918bSBernhard Walle 
175ada918bSBernhard Walle extern int vt_kmsg_redirect(int new);
185ada918bSBernhard Walle 
195ada918bSBernhard Walle #else
205ada918bSBernhard Walle 
vt_kmsg_redirect(int new)215ada918bSBernhard Walle static inline int vt_kmsg_redirect(int new)
225ada918bSBernhard Walle {
235ada918bSBernhard Walle 	return 0;
245ada918bSBernhard Walle }
255ada918bSBernhard Walle 
265ada918bSBernhard Walle #endif
275ada918bSBernhard Walle 
281da177e4SLinus Torvalds #endif /* _LINUX_VT_H */
29