Skip to content

Commit

Permalink
notifiers: vt: move vt notifiers into vt.h
Browse files Browse the repository at this point in the history
It is not necessary to share the same notifier.h.

Signed-off-by: WANG Cong <[email protected]>
Cc: David Miller <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Cc: Greg KH <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Amerigo Wang authored and torvalds committed Jul 26, 2011
1 parent 35eb6db commit a376d3d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 2 additions & 7 deletions 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 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 a376d3d

Please sign in to comment.