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