Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_VT_H
0003 #define _LINUX_VT_H
0004 
0005 #include <uapi/linux/vt.h>
0006 
0007 
0008 /* Virtual Terminal events. */
0009 #define VT_ALLOCATE     0x0001 /* Console got allocated */
0010 #define VT_DEALLOCATE       0x0002 /* Console will be deallocated */
0011 #define VT_WRITE        0x0003 /* A char got output */
0012 #define VT_UPDATE       0x0004 /* A bigger update occurred */
0013 #define VT_PREWRITE     0x0005 /* A char is about to be written to the console */
0014 
0015 #ifdef CONFIG_VT_CONSOLE
0016 
0017 extern int vt_kmsg_redirect(int new);
0018 
0019 #else
0020 
0021 static inline int vt_kmsg_redirect(int new)
0022 {
0023     return 0;
0024 }
0025 
0026 #endif
0027 
0028 #endif /* _LINUX_VT_H */