[Click] how to use c functions in linux kernel mode
Eddie Kohler
kohler at cs.ucla.edu
Mon Jul 12 10:35:57 EDT 2004
Hi Peng,
Unfortunately many C library functions are not available in the kernel. YOu
don't have access to files, and *floating point arithmetic is not allowed*. Our
kernel elements use fixed-point arithmetic (for example, our RED uses
fixed-point arithmetic), and export information via handlers or LLRPCs rather
than files.
Eddie
pwangee at udel.edu wrote:
> Hi,
>
> I used some c functions in my element such as pow, log, puts. When I try to make
> the click work as the kernel 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
>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list