vt.h 572 B

123456789101112131415161718192021222324252627
  1. #ifndef _LINUX_VT_H
  2. #define _LINUX_VT_H
  3. #include <uapi/linux/vt.h>
  4. /* Virtual Terminal events. */
  5. #define VT_ALLOCATE 0x0001 /* Console got allocated */
  6. #define VT_DEALLOCATE 0x0002 /* Console will be deallocated */
  7. #define VT_WRITE 0x0003 /* A char got output */
  8. #define VT_UPDATE 0x0004 /* A bigger update occurred */
  9. #define VT_PREWRITE 0x0005 /* A char is about to be written to the console */
  10. #ifdef CONFIG_VT_CONSOLE
  11. extern int vt_kmsg_redirect(int new);
  12. #else
  13. static inline int vt_kmsg_redirect(int new)
  14. {
  15. return 0;
  16. }
  17. #endif
  18. #endif /* _LINUX_VT_H */