April 7, 2010

Module versions

I started learning kernel module programming. I have few doubts in the below lines found in the internet.

A module compiled for one kernel won't load if you boot a different kernel unless you enable CONFIG_MODVERSIONS in the kernel.
Most stock Linux distro kernels come with modversioning turned on. If you're having trouble loading the modules because of versioning errors, compile a kernel with modversioning turned off.

Doubts:

1. How we can enable CONFIG_MODVERSIONS ? During kernel compilation.
2. Is it possible to change CONFIG_MODVERSIONS for a running kernel.
2. How we can turned on/off modversioning.
3. what is relation between CONFIG_MODVERSIONS and mocversioning.

Can you please clarify my doubts.

Thanks in advance.

Click Here!