aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/notifier.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2007-10-19 02:39:17 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-19 14:53:34 -0400
commitb293d758470e971253eec42b817bc9ef1213b228 (patch)
treeaafc6011762436cf3076798fee7140145908852c /include/linux/notifier.h
parentfe9d4f576324999ac521c931f3b3eee0c8e45544 (diff)
Console events and accessibility
Some external modules like Speakup need to monitor console output. This adds a VT notifier that such modules can use to get console output events: allocation, deallocation, writes, other updates (cursor position, switch, etc.) [akpm@linux-foundation.org: fix headers_check] Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Cc: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/notifier.h')
-rw-r--r--include/linux/notifier.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/notifier.h b/include/linux/notifier.h
index 6ec7e21a3699..0c40cc0b4a36 100644
--- a/include/linux/notifier.h
+++ b/include/linux/notifier.h
@@ -242,5 +242,11 @@ static inline int notifier_to_errno(int ret)
242 242
243extern struct blocking_notifier_head reboot_notifier_list; 243extern struct blocking_notifier_head reboot_notifier_list;
244 244
245/* Virtual Terminal events. */
246#define VT_ALLOCATE 0x0001 /* Console got allocated */
247#define VT_DEALLOCATE 0x0002 /* Console will be deallocated */
248#define VT_WRITE 0x0003 /* A char got output */
249#define VT_UPDATE 0x0004 /* A bigger update occurred */
250
245#endif /* __KERNEL__ */ 251#endif /* __KERNEL__ */
246#endif /* _LINUX_NOTIFIER_H */ 252#endif /* _LINUX_NOTIFIER_H */