If I have a Linux module that was compiled for kernel x, can I expect the compiled module to also work with kernel y or is that generally not the case?
In general, kernel modules are not loaded for other versions.
You can check the module information with the
The kernel version information of modinfo's
uname commands will help.
But if you really want to, the
-f option of the
modprobe command will help.(modprobe man page)
This option allows you to ignore the version information when you load the kenrel module.
This option is not a panacea.
You should be familiar with the kernel module and kernel version.