diff options
| author | Alan Cox <alan@redhat.com> | 2008-10-13 05:41:42 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-13 12:51:42 -0400 |
| commit | d81ed10307027e1643a65ab5fe17cc01233d376d (patch) | |
| tree | e46ac5735124308357f42214a8a26f75dcd3f412 /include/linux | |
| parent | feebed6515a113eeb33919e9557a8b9710ea627c (diff) | |
tty: Remove more special casing and out of place code
Carry on pushing code out of tty_io when it belongs to other drivers. I'm
not 100% happy with some of this and it will be worth revisiting some of the
exports later when the restructuring work is done.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/tty.h | 6 | ||||
| -rw-r--r-- | include/linux/vt_kern.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 6e39c705b9b6..6cc7ccc93c69 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
| @@ -314,6 +314,8 @@ extern int kmsg_redirect; | |||
| 314 | extern void console_init(void); | 314 | extern void console_init(void); |
| 315 | extern int vcs_init(void); | 315 | extern int vcs_init(void); |
| 316 | 316 | ||
| 317 | extern struct class *tty_class; | ||
| 318 | |||
| 317 | /** | 319 | /** |
| 318 | * tty_kref_get - get a tty reference | 320 | * tty_kref_get - get a tty reference |
| 319 | * @tty: tty device | 321 | * @tty: tty device |
| @@ -398,6 +400,10 @@ extern int tty_perform_flush(struct tty_struct *tty, unsigned long arg); | |||
| 398 | extern dev_t tty_devnum(struct tty_struct *tty); | 400 | extern dev_t tty_devnum(struct tty_struct *tty); |
| 399 | extern void proc_clear_tty(struct task_struct *p); | 401 | extern void proc_clear_tty(struct task_struct *p); |
| 400 | extern struct tty_struct *get_current_tty(void); | 402 | extern struct tty_struct *get_current_tty(void); |
| 403 | extern void tty_default_fops(struct file_operations *fops); | ||
| 404 | extern int tty_init_dev(struct tty_driver *driver, int idx, | ||
| 405 | struct tty_struct **ret_tty, int first_ok); | ||
| 406 | extern void tty_release_dev(struct file *filp); | ||
| 401 | 407 | ||
| 402 | extern struct mutex tty_mutex; | 408 | extern struct mutex tty_mutex; |
| 403 | 409 | ||
diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index 1cbd0a7db4e6..2f1113467f70 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h | |||
| @@ -96,7 +96,7 @@ void change_console(struct vc_data *new_vc); | |||
| 96 | void reset_vc(struct vc_data *vc); | 96 | void reset_vc(struct vc_data *vc); |
| 97 | extern int unbind_con_driver(const struct consw *csw, int first, int last, | 97 | extern int unbind_con_driver(const struct consw *csw, int first, int last, |
| 98 | int deflt); | 98 | int deflt); |
| 99 | int vty_init(void); | 99 | int vty_init(const struct file_operations *console_fops); |
| 100 | 100 | ||
| 101 | /* | 101 | /* |
| 102 | * vc_screen.c shares this temporary buffer with the console write code so that | 102 | * vc_screen.c shares this temporary buffer with the console write code so that |
