kernel: write to all registered consoles with printk()

This commit is contained in:
2023-05-06 21:32:19 +01:00
parent f52ca2f1e2
commit 94ea756b31
3 changed files with 29 additions and 4 deletions

View File

@@ -43,6 +43,9 @@ struct console {
extern kern_status_t console_register(struct console *con);
extern kern_status_t console_unregister(struct console *con);
extern struct queue *get_consoles(unsigned long *flags);
extern void put_consoles(struct queue *consoles, unsigned long flags);
extern void console_write(struct console *con, const char *s, unsigned int len);
extern int console_read(struct console *con, char *s, unsigned int len);