LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Sample Driver Module incompatibility with Kernel version (or gcc version) (http://www.linuxquestions.org/questions/linux-general-1/sample-driver-module-incompatibility-with-kernel-version-or-gcc-version-22808/)

jvs 06-07-2002 12:22 AM

Sample Driver Module incompatibility with Kernel version (or gcc version)
 
Hello,

I am a newbie to Linux driver programming, I wrote a sample program from a book which has init_module() and clean_module() only. When I tried to insmod the object file (which is compiled using gcc), it gives a message "the module cannot be loaded as it requires the kernel version to be 2.4.0-0.26smp "
My current kernel version is 2.2.16-22smp with RedHat Linux 7.
Can anyone help me out in loading module succesfully into kernel???

Thanks in advance
JVS

sakeeb 06-07-2002 01:40 AM

the kernel headers you used may be of the kernel version 2.4.0-0.26 and you may be currently loaded the kernel of version 2.2.16-22smp


All times are GMT -5. The time now is 07:15 PM.