diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-01-06 03:18:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:33:46 -0500 |
commit | 1f80171e81ed0d08dcdb6efe239d7b929aef498f (patch) | |
tree | f6f72268ddee265b46ceb698cdff6daa7cba6250 /arch/um/include/line.h | |
parent | 418e55d49b0ec7d2e7a033f2dd083f5b2ab7d119 (diff) |
[PATCH] uml: move console configuration
This patch changes when console devices are configured in order to prepare the
ground for the next patch.
parse_chan_pair is now done earlier, when initcalls are run, rather than when
the device is opened.
When a host device disappears, the channel list is closed, but not freed.
This is required by the previous change. line_config now takes the options
structure as an argument, and line_open doesn't.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/include/line.h')
-rw-r--r-- | arch/um/include/line.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/um/include/line.h b/arch/um/include/line.h index 351d3ac30b78..474398ba1207 100644 --- a/arch/um/include/line.h +++ b/arch/um/include/line.h | |||
@@ -74,8 +74,7 @@ struct lines { | |||
74 | #define LINES_INIT(n) { num : n } | 74 | #define LINES_INIT(n) { num : n } |
75 | 75 | ||
76 | extern void line_close(struct tty_struct *tty, struct file * filp); | 76 | extern void line_close(struct tty_struct *tty, struct file * filp); |
77 | extern int line_open(struct line *lines, struct tty_struct *tty, | 77 | extern int line_open(struct line *lines, struct tty_struct *tty); |
78 | struct chan_opts *opts); | ||
79 | extern int line_setup(struct line *lines, unsigned int sizeof_lines, | 78 | extern int line_setup(struct line *lines, unsigned int sizeof_lines, |
80 | char *init); | 79 | char *init); |
81 | extern int line_write(struct tty_struct *tty, const unsigned char *buf, | 80 | extern int line_write(struct tty_struct *tty, const unsigned char *buf, |
@@ -99,11 +98,11 @@ extern struct tty_driver * line_register_devfs(struct lines *set, | |||
99 | struct tty_operations *driver, | 98 | struct tty_operations *driver, |
100 | struct line *lines, | 99 | struct line *lines, |
101 | int nlines); | 100 | int nlines); |
102 | extern void lines_init(struct line *lines, int nlines); | 101 | extern void lines_init(struct line *lines, int nlines, struct chan_opts *opts); |
103 | extern void close_lines(struct line *lines, int nlines); | 102 | extern void close_lines(struct line *lines, int nlines); |
104 | 103 | ||
105 | extern int line_config(struct line *lines, unsigned int sizeof_lines, | 104 | extern int line_config(struct line *lines, unsigned int sizeof_lines, |
106 | char *str); | 105 | char *str, struct chan_opts *opts); |
107 | extern int line_id(char **str, int *start_out, int *end_out); | 106 | extern int line_id(char **str, int *start_out, int *end_out); |
108 | extern int line_remove(struct line *lines, unsigned int sizeof_lines, int n); | 107 | extern int line_remove(struct line *lines, unsigned int sizeof_lines, int n); |
109 | extern int line_get_config(char *dev, struct line *lines, | 108 | extern int line_get_config(char *dev, struct line *lines, |