lkml.org 
[lkml]   [2006]   [Jul]   [8]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 7 Jul 2006 22:30:43 -0700
From"Randy.Dunlap" <>
SubjectRe: Opinions on removing /proc/tty?
On Fri, 7 Jul 2006 22:56:51 -0400 Jon Smirl wrote:

> Does anyone use the info in /proc/tty? The hard coded device names
> aren't compatible with udev's ability to rename things.
> 
> There also doesn't appear to be any useful info in the drivers portion
> that isn't already available in sysfs. I can add some code to make a
> list of registered line disciplines appear in sysfs.
> 
> Does anyone have a problem with deleting /proc/tty if ldisc enum
> support is added to sysfs?
> 
> [root@jonsmirl tty]# cat drivers
> /dev/tty             /dev/tty        5       0 system:/dev/tty
> /dev/console         /dev/console    5       1 system:console
> /dev/ptmx            /dev/ptmx       5       2 system
> /dev/vc/0            /dev/vc/0       4       0 system:vtmaster
> serial               /dev/ttyS       4 64-67 serial
> pty_slave            /dev/pts      136 0-1048575 pty:slave
> pty_master           /dev/ptm      128 0-1048575 pty:master
> unknown              /dev/tty        4 1-63 console
> [root@jonsmirl tty]#
> 
> [root@jonsmirl tty]# cat ldiscs
> n_tty       0

Hi,
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.

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?

Thanks,
---
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-07-08 07:31    [from the cache]
©2003-2008