[lkml]   [1996]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectprob. with modules
I'm currently trying to write my first linux driver. I'd like
to write it as a module.

To begin with something, I wrote a small skeleton with some entry
points (open, close, ioctl, etc) and also included init_module()
and cleanup_module(). I included calls to printk() in these functions
for debugging purpose. I addition, I included the following version
definition (taken from another driver):

#include <linux/version.h>
char kernel_version[] = UTS_RELEASE;

I then compiled this module as follows:

gcc -Wall -c pl_loopback.c -o pl_loopback.o -D__LINUX__

Now, if I try to load the module with "insmod pl_loopback", I
obtain the following error message:

printk undefined
Failed to load module! The symbols from kernel 1.2.13 don't match 1.2.13

So, I presume that I forgot something...
Any idea....?


 \ /
  Last update: 2005-03-22 13:37    [W:0.033 / U:2.488 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site