Re: [PATCH] tty: Add sysfs symlink for console name->tty device

From: Peter Hurley
Date: Thu Feb 27 2014 - 08:32:06 EST


On 02/27/2014 06:13 AM, Kay Sievers wrote:
On Wed, Feb 26, 2014 at 3:40 PM, Peter Hurley <peter@xxxxxxxxxxxxxxxxxx> wrote:
Enable a user-space process to discover the underlying tty device
for a console, if one exists, and when the tty device is later
created or destroyed.

Add sysfs symlinks for registered consoles to their respective
devices in [sys/class,sys/devices/virtual]/tty/console.
Scan consoles at tty device (un)registration to handle deferred
console<->device (un)binding.

What tool is supposed to read that? I can't think of anything
interested in this, as soon as we have fixed the "active" console
output.

Kay,

With all due respect, that "fix" is a ridiculous hack, being done
for self-serving expedience. It already caused one user-space breakage
which you did not expect.

This sysfs interface is superior in every way.

Regards,
Peter Hurley

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/