2.4 and 2.6 kernel module
In the 2.4 kernel, modules contain the "kernel_version" identification in the module itself. This is an example from the 2.4.18 reiserfs kernel module:
kernel_version=2.4.18-27.7.xbigmem
using_checksums=1
description=ReiserFS journaled filesystem
author=Hans Reiser <[email protected]>
license=GPL
kernel_version=2.4.18-27.7.xbigmem
using_checksums=1
This ID doesn't seem to exist anymore in the 2.6 kernel. How does a 2.6 kernel know if a module is compatible?
Thanks for any help.
Found the answer by googling further. It's been renamed to vermagic.
strings reiserfs.ko|grep vermagic vermagic=2.6.9-11.EL 586 REGPARM 4KSTACKS gcc-3.4
Quoted 18 lines · Fong Vang
In the 2.4 kernel, modules contain the "
kernel_version" identification in the module itself. This is an example from the 2.4.18 reiserfs kernel module:kernel_version=2.4.18-27.7.xbigmem
using_checksums=1
description=ReiserFS journaled filesystem
author=Hans Reiser <[email protected]>
license=GPL
kernel_version=2.4.18-27.7.xbigmem
using_checksums=1This ID doesn't seem to exist anymore in the 2.6 kernel. How does a 2.6 kernel know if a module is compatible?
Thanks for any help.