Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef _LINUX_VT_H |
| 3 | #define _LINUX_VT_H |
| 4 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 5 | #include <uapi/linux/vt.h> |
Samuel Thibault | b293d75 | 2007-10-18 23:39:17 -0700 | [diff] [blame] | 6 | |
Bernhard Walle | 5d0bb2c | 2009-12-17 15:27:11 -0800 | [diff] [blame] | 7 | |
Amerigo Wang | a376d3d | 2011-07-25 17:13:12 -0700 | [diff] [blame] | 8 | /* Virtual Terminal events. */ |
| 9 | #define VT_ALLOCATE 0x0001 /* Console got allocated */ |
| 10 | #define VT_DEALLOCATE 0x0002 /* Console will be deallocated */ |
| 11 | #define VT_WRITE 0x0003 /* A char got output */ |
| 12 | #define VT_UPDATE 0x0004 /* A bigger update occurred */ |
| 13 | #define VT_PREWRITE 0x0005 /* A char is about to be written to the console */ |
| 14 | |
Bernhard Walle | 5ada918 | 2009-12-14 18:00:43 -0800 | [diff] [blame] | 15 | #ifdef CONFIG_VT_CONSOLE |
| 16 | |
| 17 | extern int vt_kmsg_redirect(int new); |
| 18 | |
| 19 | #else |
| 20 | |
| 21 | static inline int vt_kmsg_redirect(int new) |
| 22 | { |
| 23 | return 0; |
| 24 | } |
| 25 | |
| 26 | #endif |
| 27 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | #endif /* _LINUX_VT_H */ |