Re: Opinions on removing /proc/tty?

From: Ray Lee
Date: Sun Jul 09 2006 - 13:03:23 EST


On 7/9/06, Albert Cahalan <acahalan@xxxxxxxxx> wrote:
In any case, I'm NOT running a udevinfo program or linking
to a screwball library. Random failures are not OK.

Complete agreement, but it seems like there's a third option here.
We're talking about nothing more complicated than a table lookup here.
Having a `udevinfo` invocation would indeed be overkill (and slower
than just stating the entire /dev hierarchy, I'm sure), but
Greg's/Jon's point that udev is the original authoritative source of
the data remains.

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. This could be yet another strategy somewhere in your
list of heroic efforts to derive a /dev/ node :-).

Having anyone other than udev try to maintain that mappings cache file
is doomed to failure, as you already noted.

Ray
-
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/