From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161086AbWGIFBg (ORCPT ); Sun, 9 Jul 2006 01:01:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161087AbWGIFBg (ORCPT ); Sun, 9 Jul 2006 01:01:36 -0400 Received: from xenotime.net ([66.160.160.81]:38890 "HELO xenotime.net") by vger.kernel.org with SMTP id S1161086AbWGIFBf (ORCPT ); Sun, 9 Jul 2006 01:01:35 -0400 Date: Sat, 8 Jul 2006 22:04:14 -0700 From: "Randy.Dunlap" To: "Jon Smirl" Cc: linux-kernel@vger.kernel.org, alan@lxorguk.ukuu.org.uk, adaplas@gmail.com Subject: Re: Opinions on removing /proc/tty? Message-Id: <20060708220414.c8f1476e.rdunlap@xenotime.net> In-Reply-To: <9e4733910607072256q65188526uc5cb706ec3ecbaee@mail.gmail.com> References: <9e4733910607071956q284a2173rfcdb2cfe4efb62b4@mail.gmail.com> <20060707223043.31488bca.rdunlap@xenotime.net> <9e4733910607072256q65188526uc5cb706ec3ecbaee@mail.gmail.com> Organization: YPO4 X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.8.3; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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: > > http://www.xenotime.net/linux/patches/consoles-list.patch > > 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 ? > Your patch isn't printing correctly. It is supposed to write the > output to seq_file, not use printk. Pray tell where does it call printk()? > I get one entry on my system: > 0: tty x:W:U flags: print consoledev enabled > > I would have thought that I would see entries for network, serial, and > syslog too. Yes for network and serial or usbserial. I wouldn't expect syslog (based on my working definition). --- ~Randy