Skip to contentSkip to conversation

2.4 and 2.6 kernel module

DISCUSSION Fong Vang 1 participant 2 messages Aug 17, 2005

lore
Share & tools
lore

Fong Vang

author
#0 lore raw

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.

author
#1 lore raw

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=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.