Re: Opinions on removing /proc/tty?
From: Greg KH
Date: Sat Jul 08 2006 - 12:11:25 EST
On Sat, Jul 08, 2006 at 10:12:36AM -0400, Jon Smirl wrote:
> On 7/8/06, Mike Galbraith <efault@xxxxxx> wrote:
> >On Fri, 2006-07-07 at 22:56 -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?
> >
> >ps uses /proc/tty/drivers, so some coordination would be needed.
>
> Greg, I just looked at the source for ps and it has a bunch of fixed
> code for turning major/minor into /dev/name. Isn't that something
> udevinfo should be doing? But looking at the help for udevinfo I don't
> see any way to turn a major/minor into /dev/name. The altermative
> seems to be search /dev looking for the right device node.
So far no one has needed that kind of functionality from udevinfo. It
should be easy to add if you need it, patches are always welcome :)
thanks,
greg k-h
-
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/