proc: Add nbcon support for /proc/consoles
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 4 Sep 2024 12:05:32 +0000 (14:11 +0206)
committerPetr Mladek <pmladek@suse.com>
Wed, 4 Sep 2024 13:56:33 +0000 (15:56 +0200)
commitc83a20662dd099dbac9ef6df44134ef446980c56
tree9a5f99f706f2695e31ba6e66a72c83bae7c332f0
parentfe6fa88d865e9c1a41b41f92ae0531470c86f0da
proc: Add nbcon support for /proc/consoles

Update /proc/consoles output to show 'W' if an nbcon console is
registered. Since the write_thread() callback is mandatory, it
enough just to check if it is an nbcon console.

Also update /proc/consoles output to show 'N' if it is an
nbcon console.

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