Messages in this thread | | | Subject | Re: /proc/config idea | Date | Tue, 03 Apr 2001 13:18:29 +0200 | From | Olaf Titz <> |
| |
> a module for 2.4.3 will work for any 2.4.3 kernel that supports modules > at all (except for the SMP vs UP issue) so it's not the same thing as
No, no, no. This is absolutely and dangerously wrong.
A module depends on the kernel configuration, because it may access internal data structures of the kernel which change with configuration. It also depends on the compiler version and exact options used, because certain structures in the kernel are compiler dependent. Loading a module which doesn't fit the running kernel _exactly_ is the easiest way to get a hard kernel crash.
SMP is only a special case of this general problem. CONFIG_MODVERSIONS is designed to take care of this dependency, and it really ought to be non-optional.
Olaf - 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/
| |