staticvoid ssl_announce(char *dev_name, int dev)
{
printk(KERN_INFO "Serial line %d assigned device '%s'\n", dev,
dev_name);
}
/* Almost const, except that xterm_title may be changed in an initcall */ staticstruct chan_opts opts = {
.announce = ssl_announce,
.xterm_title = "Serial Line #%d",
.raw = 1,
};
staticint ssl_config(char *str, char **error_out); staticint ssl_get_config(char *dev, char *str, int size, char **error_out); staticint ssl_remove(int n, char **error_out);
/* The array is initialized by line_init, at initcall time. The * elements are locked individually as needed.
*/ staticchar *conf[NR_PORTS]; staticchar *def_conf = CONFIG_SSL_CHAN; staticstruct line serial_lines[NR_PORTS];
/* Changed by ssl_init and referenced by ssl_exit, which are both serialized * by being an initcall and exitcall, respectively.
*/ staticint ssl_init_done;
staticint ssl_init(void)
{ char *new_title; int err; int i;
printk(KERN_INFO "Initializing software serial port version %d\n",
ssl_version);
err = register_lines(&driver, &ssl_ops, serial_lines,
ARRAY_SIZE(serial_lines)); if (err) return err;
new_title = add_xterm_umid(opts.xterm_title); if (new_title != NULL)
opts.xterm_title = new_title;
for (i = 0; i < NR_PORTS; i++) { char *error; char *s = conf[i]; if (!s)
s = def_conf; if (setup_one_line(serial_lines, i, s, &opts, &error))
printk(KERN_ERR "setup_one_line failed for " "device %d : %s\n", i, error);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.