Results 1 to 2 of 2
Hi:
I'm using Linux kernel 2.4.26 on mpc8280. I have written a drvice driver (a C program split-up in multiple files in a folder) and complied successfully. When I try ...
- 09-11-2008 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 1
insmod: unresolved symbols
Hi:
I'm using Linux kernel 2.4.26 on mpc8280. I have written a drvice driver (a C program split-up in multiple files in a folder) and complied successfully. When I try to load this kernel module using insmod,
# insmod -o ima_cfg /mnt/nfs/ima_cfg.o
Using /mnt/nfs/ima_cfg.o
insmod: unresolved symbol Init_int_queue
I've defined the function Init_int_queue in a different C file(other than ima_cfg.c) and the header is inclued in the ima_cfg.c. If I include this function in the ima_cfg.c file I donot get this error.
In the /proc/ksyms I donot see the Init_int_queue's address, since its not built in the kernel.
Can anyone please let me know how can I resolve this problem and insmod a driver, which has functions defined in multiple files.
Thanks.
Riddhi
- 09-17-2008 #2Just Joined!
- Join Date
- Sep 2008
- Posts
- 25
simply you have to compile both source files and then link them together into one
kernel module.


Reply With Quote