]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/vt.h
vt: introduce and use vt_kmsg_redirect() function
[net-next-2.6.git] / include / linux / vt.h
index 7ffa11f062324de1b79bb0d3093dac8523aaee0c..3fb9944e50a650f35075fd37ecb02cdf04d8e8aa 100644 (file)
@@ -84,4 +84,19 @@ struct vt_setactivate {
 
 #define VT_SETACTIVATE 0x560F  /* Activate and set the mode of a console */
 
+#ifdef CONFIG_VT_CONSOLE
+
+extern int vt_kmsg_redirect(int new);
+
+#else
+
+static inline int vt_kmsg_redirect(int new)
+{
+       return 0;
+}
+
+#endif
+
+#define vt_get_kmsg_redirect() vt_kmsg_redirect(-1)
+
 #endif /* _LINUX_VT_H */