Re: tty: add 'active' sysfs attribute to tty0 and console device

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dr. Werner Fink
Date: Thursday, November 18, 2010 - 4:00 am

On Wed, Nov 17, 2010 at 05:53:10PM -0800, Greg KH wrote:

I'm still reading and I'm wondering about this discussion.  The only
thing I'd like to be able is to detect all ttys used for the system
console even if not a VT (not having a VT but several other consoles
is the most pressing case e.g. on s390 or zSeries) and this without
forcing (and maybe stealing) the controlling tty on the system console
to be able to detect the primary tty/console.

The primary tty marked with CON_CONSDEV and normally the first in
console_drivers.  This can be done with Kay's patch as well as with
my approach.  And both approaches do have the advantage to become
the full list of consoles which will help me to extend e.g. sulogin ...

The only advantage of my approache in comparision to Kay's one is that
the remaining console flags become visible for normal user space.
This was an idea of Randy Dunlap otherwise my patch would provide
the same information as the patch of Kay.

Maybe Kay could extend his patch in that way that the flags and the
facilities (having device, read, write, and unblank) are also shown
in the new file /sys/class/tty/console/active ... but maybe Randy
could says a few words for what this is usable.

     Werner

-- 
System V style init programs - http://savannah.nongnu.org/projects/sysvinit/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Tue Nov 16, 2:36 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Tue Nov 16, 2:42 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Tue Nov 16, 3:58 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Tue Nov 16, 4:10 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Tue Nov 16, 4:18 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Valdis.Kletnieks, (Wed Nov 17, 3:01 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Wed Nov 17, 6:48 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Wed Nov 17, 7:29 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Dr. Werner Fink, (Thu Nov 18, 4:00 am)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Dr. Werner Fink, (Fri Nov 19, 10:07 am)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Dr. Werner Fink, (Fri Nov 19, 11:41 am)