how to use c functions in linux kernel mode
Hi,
I used some c functions in my program such as pow, log, puts. When I try to make the program work as a module, it gives some errors. % /usr/local/sbin/click-install wp-wire-dem.click /usr/local/lib/click.o: unresolved symbol pow /usr/local/lib/click.o: unresolved symbol log /usr/local/lib/click.o: unresolved symbol puts /usr/local/lib/click.o: unresolved symbol printf click-install: ‘/sbin/insmod /usr/local/lib/click.o’ failed Can I use the c functions in the kernel program? If can, how to use it? Thanks Peng :confused: |
I don't know anything about kernel programing myself, but I do know there is a Kernel Programming Howto. Check the Linux Documentation Project website.
|
as far as i know, you cant use glibc in kernel mode, or any lib in the kernel, you have to use what the kernel provides
|
Quote:
|
Quote:
|
I thought that was what static linking did, copy the relavent code from the library into your executable. I could be wrong though, I frequently am. ;)
Regards. |
All times are GMT -5. The time now is 10:15 AM. |