Re: modversion clarification.

From: Pat Suwalski (pats@xandros.com)
Date: Thu Jul 25 2002 - 12:43:43 EST


henrique wrote:
> When you try to load the module, the insmod will check if the symbols of your
> module are the same of the current running kernel. If the symbols are the
> same the module will be loaded. So you can use your module on all kernels
> that have the same CRC for the kernel functions your module uses.

So then is that not opposite of what modversion says it does, which is
to allow modules to be more comptible across multiple kernel versions?

Basically, the problem is that if module.h is included and MODVERSION is
not defined, and the module wants to export symbols (EXPORT_SYMTAB is
defined), then module.h automatically ifdefs modversions.h even if the
kernel is not configured to use it (and thus the file does not exist).

--Pat

> As a matter of fact it happens seldomly as the kernel are always changing and
> you have to recompile your module every time you change your kernel. But it
> is still a very good idea.
>
> regards
> Henrique

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



This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:21 EST