diff options
Diffstat (limited to 'include/linux/vt.h')
-rw-r--r-- | include/linux/vt.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/include/linux/vt.h b/include/linux/vt.h index 7afca0d72139..d5dd0bc408fd 100644 --- a/include/linux/vt.h +++ b/include/linux/vt.h | |||
@@ -70,8 +70,8 @@ struct vt_event { | |||
70 | #define VT_EVENT_UNBLANK 0x0004 /* Screen unblank */ | 70 | #define VT_EVENT_UNBLANK 0x0004 /* Screen unblank */ |
71 | #define VT_EVENT_RESIZE 0x0008 /* Resize display */ | 71 | #define VT_EVENT_RESIZE 0x0008 /* Resize display */ |
72 | #define VT_MAX_EVENT 0x000F | 72 | #define VT_MAX_EVENT 0x000F |
73 | unsigned int old; /* Old console */ | 73 | unsigned int oldev; /* Old console */ |
74 | unsigned int new; /* New console (if changing) */ | 74 | unsigned int newev; /* New console (if changing) */ |
75 | unsigned int pad[4]; /* Padding for expansion */ | 75 | unsigned int pad[4]; /* Padding for expansion */ |
76 | }; | 76 | }; |
77 | 77 | ||
@@ -84,4 +84,23 @@ struct vt_setactivate { | |||
84 | 84 | ||
85 | #define VT_SETACTIVATE 0x560F /* Activate and set the mode of a console */ | 85 | #define VT_SETACTIVATE 0x560F /* Activate and set the mode of a console */ |
86 | 86 | ||
87 | #ifdef __KERNEL__ | ||
88 | |||
89 | #ifdef CONFIG_VT_CONSOLE | ||
90 | |||
91 | extern int vt_kmsg_redirect(int new); | ||
92 | |||
93 | #else | ||
94 | |||
95 | static inline int vt_kmsg_redirect(int new) | ||
96 | { | ||
97 | return 0; | ||
98 | } | ||
99 | |||
100 | #endif | ||
101 | |||
102 | #endif /* __KERNEL__ */ | ||
103 | |||
104 | #define vt_get_kmsg_redirect() vt_kmsg_redirect(-1) | ||
105 | |||
87 | #endif /* _LINUX_VT_H */ | 106 | #endif /* _LINUX_VT_H */ |