Kernel module compilation problem
Hi
I want to compiling my own kernel loadable module. I have one big module 2.6.18 kernel mod.c I want to divide this to several files. The problem is to write right Makefile Code:
lib1.h and try to compile with this makefile Code:
obj-m := mod.o Code:
this mean mod.ko is loaded but dont work - before dividing it print to KERN_INFO "Hello world" ( dmesg ) There is one more thing. When I compile mod.c without lib* mod.ko have about 5.5Kb but if I compile with mod-objs variable doesnt matter what is in mod.c and in lib1.c compilation is ok loading is ok and size mod.ko is about 1.6 Kb constatntly The questin is WHY ? |
All times are GMT -5. The time now is 05:50 PM. |