Yes. This is important. There _needs_ to be some fixed address at least as
far as the kernel is concerned (it might move around between reboots or
something like that, but it needs to be something the kernel knows about
intimately and doesn't need lots of dynamic lookup).
However, there's another issue, namely process startup cost. I personally
want it to be as light as at all possible. I hate doing an "strace" on
user processes and seeing tons and tons of crapola showing up. Just for
fun, do a
strace /bin/sh -c "echo hello"
to see what I'm talking about. And that's actually a _lot_ better these
days than it used to be.
Anyway, I really hate to see "unnecessary crap" in the user mode startup
just because kernel interfaces are bad. That's why I like the AT_SYSINFO
ELF auxilliary table approach - it's something that is already _there_ for
the process to just take advantage of. Having to do a magic mmap for
somehting that everybody needs to do is just bad design.
Linus
-
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/