Messages in this thread | | | Date | Sun, 9 Jul 2006 10:08:12 -0700 | From | "Ray Lee" <> | Subject | Re: Opinions on removing /proc/tty? |
| |
On 7/9/06, Ray Lee <madrabbit@gmail.com> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |