hi,
I have written a module whose skeletal form is like this:
// kernel source (/usr/src/linux/ipc/msg.c
void (*fn_ptr)(void);
int msgsnd(parameters) {
...
if(fn_ptr) (fn_ptr)();
}
// my module (module.c)
extern void (*fn_ptr)(void);
void my_func(void) { ...
}
int init_module(void) { fn_ptr=&my_func;
}
When i try to load the module :
$ cc -c module.c
$ ld -r -o module module.o /usr/src/linux/ipc/ipc.o
./module unresolved symbol shmem_lock,shmem_nopage
This is the error message i am getting.please tell me how to load a module to kernel
source which has recursive dependency.
thanks in advance.
- learner
_________________________________________________________________
Technical writer?. Earn more now! http://server1.msn.co.in/msnleads/tis/index.asp Find out how.
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/