module linking to application

From: Andreas (andreas_lindell76_at_hotmail.com)
Date: 09/26/03


Date: 25 Sep 2003 22:27:37 -0700

Hello Everyone

I have a general question about modules and how the interact with user
application. Modules loaded with insmod foo.o runs in kernal space
while and applications devloped by user runs in user space, correct?

Now my main question is: I have a module that I have developed and it
contains to functions(plus init_module and clean up):
int my_read(void) { }
int my_write(void) { }
Now I want to be able to call these two functions from my own
application(my_app.c) and how will I do that? When compiling/linking
my_app.c I get a unresolved symbol refering to the two functions in my
module even though I have inserted it into the kernel using insmod...
and the two functions are seen in /proc/ksyms? I feel that I am
missing a few steps how to put my application in contact with my
module. Do I need to rebuild the kernel or how do I build/run my
application so that it know where to find the two functions my_read
and my_write?

Any help would be good
Regards
Andreas