boitheia me module

Aleksandros Paleos apalaios at cs.teiath.gr
Sat Apr 12 13:10:02 EEST 2003


Kalispera exo grapsei ton parakato kodika
#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.

Eyxaristo Poly
-- 
Παλαιος Αλεξανδρος
Φοιτητης ΤΕΙ Πληροφορικης Αθηνας



More information about the Linux-greek-users mailing list