Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: sysfs: Add nbcon support for 'active'

Allow the 'active' attribute to list nbcon consoles.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20240904120536.115780-15-john.ogness@linutronix.de
Signed-off-by: Petr Mladek <pmladek@suse.com>

authored by

John Ogness and committed by
Petr Mladek
def84b44 c83a2066

+1 -1
+1 -1
drivers/tty/tty_io.c
··· 3567 3567 for_each_console(c) { 3568 3568 if (!c->device) 3569 3569 continue; 3570 - if (!c->write) 3570 + if (!(c->flags & CON_NBCON) && !c->write) 3571 3571 continue; 3572 3572 if ((c->flags & CON_ENABLED) == 0) 3573 3573 continue;