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

From: Peter Hurley
Date: Fri Feb 28 2014 - 19:41:36 EST


On 02/28/2014 07:35 PM, Greg Kroah-Hartman wrote:
On Wed, Feb 26, 2014 at 09:40:51AM -0500, Peter Hurley 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.

What userspace code has been tested with this change?

Every existing distro + personal copies going back 42 versions.
No breakage. ;)

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.

I don't understand, what does userspace now look like in sysfs? Do we
need Documentation/ABI/ updates here?

And David has fixed up his original patch, which doesn't break plymouth,
and I'll be taking that, so I don't see why this patch is needed.

Ok. I tried.

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/