Tee Console¶
The tee console is implemented in
os/drivers/console/tee_console.c.
This console forwards calls to both, a basic console and a serial console. This can help during development, as one can see live output on the screen while logging the serail output to a file via qemu for later inspection.
See also:
Initialization¶
This driver is initialized by calling
-
void tee_console_init(void)¶
Initialize the console frontend.
Allocating a Tee Console¶
A new instance of the tee console is allocated by calling
Console Operations¶
This console implements the console operation (console_operations_t)
Open¶
Implements the operation console_operations_t.open:
Write¶
Implements the operation console_operations_t.write:
-
static void __tee_con_write(console_t *con, const char *string, unsigned int count)¶
Write
countcharacters of astringto the consolecon.Output printable characters but also handle (some) control characters, e.g., newline, backspace, form feed.