Messages in this thread | | | Date | Sat, 8 Jul 2006 12:20:06 -0400 | From | "Jon Smirl" <> | Subject | Re: Opinions on removing /proc/tty? |
| |
On 7/8/06, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote: > Ar Sad, 2006-07-08 am 10:12 -0400, ysgrifennodd Jon Smirl: > > > 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. > > ps has some historical baggage in this area that probably ought to go, > but /proc/tty is used by various installers and management type apps so > shouldn't be going anywhere in a hurry. > > Some of the stuff in there would be better in sysfs had sysfs been > around at the time. Other stuff like firmware loading in the serial > drivers would really benefit from a move to sysfs and hotplug events too
Then /proc/tty should take the same path as /proc/bus/usb. Make it mountable and announce that it will disappear in two years. Distributions will need to add a line to rc.sysinit like usb does, but adding that line gives you a clue that /proc/tty is disappearing.
from rc.sysinit: mount -n -t usbfs /proc/bus/usb /proc/bus/usb
I'll put together a patch making it mountable. Is there any specific info that needs to be added to sysfs?
-- Jon Smirl jonsmirl@gmail.com - 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/
| |