lkml.org 
[lkml]   [2002]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: modversion clarification.
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/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.617 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site