[lkml]   [2006]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Opinions on removing /proc/tty?
Jon Smirl wrote:
> On 7/9/06, Randy.Dunlap <> wrote:
>> On Sat, 8 Jul 2006 01:56:02 -0400 Jon Smirl wrote:
>> > On 7/8/06, Randy.Dunlap <> wrote:
>> > > I don't know how well this is an answer to your question,
>> > > but I would like to be able to find a list of registered "consoles,"
>> > > whether they be serial, usbserial, netconsole, lp, or whatever.
>> > > /proc/tty/drivers does that partially.
>> >
>> > Console is an overloaded word. Do you want to know where it is legal
>> > to send system log output to, or do you want to know where you can log
>> > in from? There was a thread earlier that talked a little about
>> > controlling this.
>> I have a working definition:
>> I want to see a list of drivers that have called register_console().
>> > > I have a patch that also does it in /proc/consoles:
>> > >
>> > > Is somewhere in /sys the right place to find a list of all consoles?
>> >
>> > /sys is the right place for this info but a class does not exist for
>> it yet.
>> I want a list of registered consoles. How would I express that in /sys ?
> You could make the list appear as an attribute in
> /sys/class/tty/console. You will need to all a little sysfs code after
> the console tty device is created.

That would violate the one file, one value rule and GregKH will drop
it like a hot potato.

A better solution is to have /sys/class/console.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-07-09 12:11    [from the cache]
©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site