Re: [kbuild-devel] Link lib to a kernel module

2006-11-12 Thread Matthias Fechner
Hello Dipti, * Dipti Ranjan Tarai <[EMAIL PROTECTED]> [24-10-06 16:42]: >As per my knowledge kernel module can not access to a library > function. Library function are only accessible to user level program. > Module can access exported symbol only. hm, it seems that it is possible to build

Re: [kbuild-devel] Link lib to a kernel module

2006-10-25 Thread Matthias Fechner
Hello Oleg, * Oleg Verych <[EMAIL PROTECTED]> [24-10-06 12:11]: > `Documentation/kbuild' directory in your linux sources. > `makefiles.txt' about `lib-y', > `modules.txt' about modules. I was now successfull with: hello_lib.h: int printHello(int); hello_lib.c int printHello(int count) { int

[kbuild-devel] Link lib to a kernel module

2006-10-23 Thread Matthias Fechner
Hi, I tried today to link a lib (.a) to my kernel module but I could not found howto do it. I prepared a little example: hello.c: #include #include #include #include #include "hello_lib.h" MODULE_LICENSE("GPL"); int init_module(void) { printHello(); return 0; } void cleanup