don't really know what solved my problem but it works now :)
thanks for everything, i have know other problem i'll leave here just for the record, cause i don't think this is the place for the new...
Type: Posts; User: circuit
don't really know what solved my problem but it works now :)
thanks for everything, i have know other problem i'll leave here just for the record, cause i don't think this is the place for the new...
but the problem isent building it its inserting it, maybe i am forgetting something during the bui.ld process that tells that this module is for this kernel... i don't know...
it still cant get it to work , insmod complians about the same....
a uname -a returns:
Linux heaven.eden 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 athlon i386 GNU/Linux
2.6 right? can't...
i have a fedora core 2 full installed in my pc, so i supose i have the latest tools....
my current code is (hello.c):
#include <linux/init.h>
#include <linux/module.h>
#include...
i did just like in the web pages you said, now it compiles but insmod complains:
insmod hello.o
insmod: error inserting 'hello.o': -1 Invalid module format
i seen this error before :) but...
i have some trouble compiling a module.. i'm using kernel 2.6 and am trying to compile the following file named hello.c:
----------------------------------------------------------------
...
actualy i'm using a 2.4 kernel
Linux asdsad.asdasd 2.4.20-8 #1 Thu Mar 13 17:18:24 EST 2003 i686 atlhon GNU/Linux
i read the first chapters and it says my problem might be that my kernel is compiled with modversioning turned on, so i have to turn it off... boring... i'll try this
that second page you left was pretyt interesting but i the first module (hello-1.c) a simple hello world, compiles I can't insert it into the kernel, it complains that it couldn't find the kernel...
what i wan't to do is to perform some code of my own before a new tcp connection is opened in my linux box.
so waht i want to know is if there is any way that i can design a function and have it...