On Wed, 2005-01-26 at 15:09, Matt Domsch wrote:
On Wed, Jan 26, 2005 at 10:22:29AM +0100, Andreas Gruenbacher wrote:
On Wednesday 26 January 2005 07:05, Matt Domsch wrote:
Module: Add module version and srcversion to the sysfs tree
why do you need this?
a) Tools like DKMS, which deal with changing out individual kernel
modules without replacing the whole kernel, can behave smarter if they
can tell the version of a given module.
They can look at the modules in /lib/modules/$(uname -r).
c) as the unbind-driver-from-device work takes shape, it will be
possible to rebind a driver that's built-in (no .ko to modinfo for the
version) to a newly loaded module. sysfs will have the
currently-built-in version info, for comparison.
d) tech support scripts can then easily grab the version info for
what's running presently - a question I get often.
That's something you can do entirely in userspace by looking at the *.ko
files.