Re: [PATCH tty-next v1 0/2] convert 8250 to nbcon

From: John Ogness
Date: Thu Sep 05 2024 - 10:06:08 EST


On 2024-09-05, Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>> $ cat /proc/consoles
>> ttyS0 -W- (EC N a) 4:64
>>
>> The 'N' shows that it is an NBCON console.
>>
>> There will also be a dedicated printing kthread. For example:
>>
>> $ ps ax | grep pr/
>> 16 root 0:00 [pr/ttyS0]
>
> Wondering if this can use the DEVNAME instead of opaque (to some extent) ttySx?
> Or is it using the same what has been passed to the console= kernel command line
> parameter?

fs/proc/consoles.c:show_console_dev() is just using:

"%s%d", con->name, con->index

The same goes for drivers/tty/tty_io.c:show_cons_active(), which is
responsible for the contents of:

/sys/devices/virtual/tty/console/active

John Ogness