Exyaristo gia to module
Dimitris Stasinopoulos
dimitris at linea.gr
Thu Apr 17 09:52:01 EEST 2003
On Thursday 17 April 2003 08:28, Aleksandros Paleos wrote:
> Alla peste mou sto praktiko kommati...ti tha prepei na kano gia na
> doulepsei telika to module mou?
>
> Ksanagrafo ton kodika kai oti allo mporei na theorithei os xrisimo
> #define MODULE
> #include <linux/module.h>
>
> int init_module(void)
> {
> printk("<1>Hello world\n");return 0;
> }
> void cleanup_module(void)
> {
> printk("<1>Goodbye cruel world\n");
> }
>
>
> sti synexeia kano gcc -c hello.c
> kai
> insmod ./hello.o
> pairno to parakato minima lathous....ti prepei na kano?
>
> ./hello.o: kernel-module version mismatch
> ./hello.o was compiled for kernel version 2.4.19
> while this kernel is version 2.4.19-4GB.
>
>
> to uname deixnei
> linux:/home/alaios/Documents/leitourgika # uname -r
> 2.4.19-4GB
>
Trexeis kernoula diaforetiko apo afton tou opoiou ta sources einai sto
/usr/src/linux... Gia des, to /usr/include/linux/version.h ti leei
mesa...?
--
You question the worthiness of my code? I should kill you where you stand!
More information about the Linux-greek-users
mailing list