mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
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>
This commit is contained in:
parent
c83a20662d
commit
def84b4467
@ -3567,7 +3567,7 @@ static ssize_t show_cons_active(struct device *dev,
|
||||
for_each_console(c) {
|
||||
if (!c->device)
|
||||
continue;
|
||||
if (!c->write)
|
||||
if (!(c->flags & CON_NBCON) && !c->write)
|
||||
continue;
|
||||
if ((c->flags & CON_ENABLED) == 0)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user