Kernel Module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@e net]# insmod test.ko
insmod: error inserting 'test.ko': -1 Invalid module format
[root@e net]#

I know i am doing wrong

Please let me know whats missing

Thanks and Regards

Kaushal


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux