Re: Opinions on removing /proc/tty?

From: Ray Lee
Date: Sun Jul 09 2006 - 13:06:26 EST


On 7/9/06, Ray Lee <madrabbit@xxxxxxxxx> wrote:
A simple solution would be for udev to just maintain a list in a flat
file (e.g., /dev/.mappings) that could be read (very quickly) by ps
upon startup.

And this could/should probably be an append-only file cleared out at
boot, so that the overhead of continually re-reading/re-writing the
file per device node on boot is removed. That'd slow things down for
sure.

Any reader just needs to know to read the whole file in, and either
construct a final lookup table in memory or scan backwards.

~r.
-
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/