John H. Robinson, IV wrote:
Perhaps it is not a lot, but it is certainly more than there used to be.
I have always liked to embed the RCS $Id$ into my source code, and you
will almost always see a $Id$ near the top of my code, including shell
programs.
But by having the function you have cleaner ways of getting to the data
for the case where things are not completely fubar'd, which seems useful
enough that it shouldn't be a big deal having a wrapper like that. I can
imagine there are some cases where the function truly adds no value, but
it seems like a trivial enough concern (and one which can be addressed)
that it hardly seems worth all the fuss.
Oh, make sure no two modules define the same get_module_version()
function. That could be bad.
Normally I think of modules as having distinctive namespaces, typically
done via a struct or a dynamically linked shared library. That should
avoid this problem.
--Chris
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg