Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259008
b: refs/heads/master
c: a376d3d
h: refs/heads/master
v: v3
  • Loading branch information
Amerigo Wang authored and Linus Torvalds committed Jul 26, 2011
1 parent 8838eee commit 7e4f9ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 35eb6db11ed9cbf9702ec90a28779a51fe4a21a9
refs/heads/master: a376d3d6727b2f05ef4c6670cc74afbd8110df89
9 changes: 2 additions & 7 deletions trunk/include/linux/notifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ static inline int notifier_to_errno(int ret)

/* Hibernation and suspend events are defined in include/linux/suspend.h. */

/* Virtual Terminal events are defined in include/linux/vt.h. */

#define NETLINK_URELEASE 0x0001 /* Unicast netlink socket released */

/* Console keyboard events.
Expand All @@ -206,12 +208,5 @@ static inline int notifier_to_errno(int ret)

extern struct blocking_notifier_head reboot_notifier_list;

/* Virtual Terminal events. */
#define VT_ALLOCATE 0x0001 /* Console got allocated */
#define VT_DEALLOCATE 0x0002 /* Console will be deallocated */
#define VT_WRITE 0x0003 /* A char got output */
#define VT_UPDATE 0x0004 /* A bigger update occurred */
#define VT_PREWRITE 0x0005 /* A char is about to be written to the console */

#endif /* __KERNEL__ */
#endif /* _LINUX_NOTIFIER_H */
7 changes: 7 additions & 0 deletions trunk/include/linux/vt.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ struct vt_setactivate {

#ifdef __KERNEL__

/* Virtual Terminal events. */
#define VT_ALLOCATE 0x0001 /* Console got allocated */
#define VT_DEALLOCATE 0x0002 /* Console will be deallocated */
#define VT_WRITE 0x0003 /* A char got output */
#define VT_UPDATE 0x0004 /* A bigger update occurred */
#define VT_PREWRITE 0x0005 /* A char is about to be written to the console */

#ifdef CONFIG_VT_CONSOLE

extern int vt_kmsg_redirect(int new);
Expand Down

0 comments on commit 7e4f9ec

Please sign in to comment.