diff options
Diffstat (limited to 'include/linux/vt.h')
-rw-r--r-- | include/linux/vt.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/vt.h b/include/linux/vt.h index 7ffa11f06232..3fb9944e50a6 100644 --- a/include/linux/vt.h +++ b/include/linux/vt.h | |||
@@ -84,4 +84,19 @@ 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 CONFIG_VT_CONSOLE | ||
88 | |||
89 | extern int vt_kmsg_redirect(int new); | ||
90 | |||
91 | #else | ||
92 | |||
93 | static inline int vt_kmsg_redirect(int new) | ||
94 | { | ||
95 | return 0; | ||
96 | } | ||
97 | |||
98 | #endif | ||
99 | |||
100 | #define vt_get_kmsg_redirect() vt_kmsg_redirect(-1) | ||
101 | |||
87 | #endif /* _LINUX_VT_H */ | 102 | #endif /* _LINUX_VT_H */ |