[no subject]
From: redzic fadil
Date: Sun Feb 22 2004 - 12:53:16 EST
hello
I hope I don't disturb,
I have tried to compile the hello.c module under kernel 2.6.3.
And I'd like to insert the hello.o module in the kernel.
But this doesn't work with kernel 2.6.3 .
I have compiled this module with kernel 2.4.* and it is well.
Also I cannot include the header file module.h, because I get error
messages.
my module:
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
int initial_module (void)
{
printk("\ninitial module\n");
return (0);
}
void delete_module (void)
{
printk("\ndelete module\n");
}
module_init(initial_module);
module_exit(delete_module);
my Makefile:
CC=gcc
CFLAGS=-isystem /lib/modules/`uname -r`/build/include -O2 -D__KERNEL__
-DMODULE
all: hello.o
If you have any idea please send an E-Mail: redzic_fadil@xxxxxxxxxxx
thanks
_________________________________________________________________
Die ultimative Fan-Seite für den MSN Messenger http://www.ilovemessenger.de
Emoticons und Hintergründe kostenlos downloaden!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/