diff options
Diffstat (limited to 'include/linux/console.h')
-rw-r--r-- | include/linux/console.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/linux/console.h b/include/linux/console.h index 95cf6f08a59d..7453cfd593c8 100644 --- a/include/linux/console.h +++ b/include/linux/console.h | |||
@@ -126,6 +126,12 @@ struct console { | |||
126 | struct console *next; | 126 | struct console *next; |
127 | }; | 127 | }; |
128 | 128 | ||
129 | /* | ||
130 | * for_each_console() allows you to iterate on each console | ||
131 | */ | ||
132 | #define for_each_console(con) \ | ||
133 | for (con = console_drivers; con != NULL; con = con->next) | ||
134 | |||
129 | extern int console_set_on_cmdline; | 135 | extern int console_set_on_cmdline; |
130 | 136 | ||
131 | extern int add_preferred_console(char *name, int idx, char *options); | 137 | extern int add_preferred_console(char *name, int idx, char *options); |
@@ -133,9 +139,9 @@ extern int update_console_cmdline(char *name, int idx, char *name_new, int idx_n | |||
133 | extern void register_console(struct console *); | 139 | extern void register_console(struct console *); |
134 | extern int unregister_console(struct console *); | 140 | extern int unregister_console(struct console *); |
135 | extern struct console *console_drivers; | 141 | extern struct console *console_drivers; |
136 | extern void acquire_console_sem(void); | 142 | extern void console_lock(void); |
137 | extern int try_acquire_console_sem(void); | 143 | extern int console_trylock(void); |
138 | extern void release_console_sem(void); | 144 | extern void console_unlock(void); |
139 | extern void console_conditional_schedule(void); | 145 | extern void console_conditional_schedule(void); |
140 | extern void console_unblank(void); | 146 | extern void console_unblank(void); |
141 | extern struct tty_driver *console_device(int *); | 147 | extern struct tty_driver *console_device(int *); |
@@ -145,7 +151,7 @@ extern int is_console_locked(void); | |||
145 | extern int braille_register_console(struct console *, int index, | 151 | extern int braille_register_console(struct console *, int index, |
146 | char *console_options, char *braille_options); | 152 | char *console_options, char *braille_options); |
147 | extern int braille_unregister_console(struct console *); | 153 | extern int braille_unregister_console(struct console *); |
148 | 154 | extern void console_sysfs_notify(void); | |
149 | extern int console_suspend_enabled; | 155 | extern int console_suspend_enabled; |
150 | 156 | ||
151 | /* Suspend and resume console messages over PM events */ | 157 | /* Suspend and resume console messages over PM events */ |