Lines Matching +full:console +full:- +full:size
1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/console.h>
32 printk(KERN_INFO "Virtual console %d assigned device '%s'\n", dev, in stdio_announce()
39 .xterm_title = "Virtual Console #%d",
44 static int con_get_config(char *dev, char *str, int size, char **error_out);
50 .name = "UML console",
56 .read_irq_name = "console",
57 .write_irq_name = "console-write",
80 static int con_get_config(char *dev, char *str, int size, char **error_out) in con_get_config() argument
82 return line_get_config(dev, vts, ARRAY_SIZE(vts), str, size, error_out); in con_get_config()
95 return line_install(driver, tty, &vts[tty->index]); in con_install()
112 static void uml_console_write(struct console *console, const char *string, in uml_console_write() argument
115 struct line *line = &vts[console->index]; in uml_console_write()
118 spin_lock_irqsave(&line->lock, flags); in uml_console_write()
119 console_write_chan(line->chan_out, string, len); in uml_console_write()
120 spin_unlock_irqrestore(&line->lock, flags); in uml_console_write()
123 static struct tty_driver *uml_console_device(struct console *c, int *index) in uml_console_device()
125 *index = c->index; in uml_console_device()
129 static int uml_console_setup(struct console *co, char *options) in uml_console_setup()
131 struct line *line = &vts[co->index]; in uml_console_setup()
136 /* No locking for register_console call - relies on single-threaded initcalls */
137 static struct console stdiocons = {
143 .index = -1,
157 printk(KERN_INFO "Initialized stdio console driver\n"); in stdio_init()
191 if (!strncmp(str, "sole=", 5)) /* console= option specifies tty */ in console_chan_setup()
194 line_setup(vt_conf, MAX_TTYS, &def_conf, str, "console"); in console_chan_setup()