Kernel Module

Kaushal Shriyan kaushalshriyan at gmail.com
Thu Aug 3 11:09:17 UTC 2006


Hi

I have a question here about to build kernel module

I have a C code

#include<stdio.h>
main()
{
printf("Hello World");
}

I did gcc -o test.ko test.c
it created test executable

but when i do insmod it gives me
[root at e net]# insmod test.ko
insmod: error inserting 'test.ko': -1 Invalid module format
[root at e net]#

I know i am doing wrong

Please let me know whats missing

Thanks and Regards

Kaushal




More information about the fedora-list mailing list