> I used the following Makefile, and built export_func and import_func
> modules, and it works fine on Fedora 10, 2.6.27.5-117.fc10.i686:
> 
> === Makefile ===
> 
> obj-m += export_func.o
> 
> all:
>       make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
> 
> clean:
>       make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
>       rm -f *~
> 
> === END ===
> 
> Copy the same Makefile and use it in the import/ directory replacing
> export_func.o with import_func.o.
> 
> === dmesg ===
> 
> <exp_init> Module to demo export of symbols!
> <my_init> Module to demo export of symbols
> <myexportfun> I am a exported function - NEW!
> 

Dear Kannan,

Thanks a lot for the information.

The problem was resolved. However, the resolution is different. 

Firstly, I did as you said above i.e. by editing the Makefile for building the 
two different modules (export and import). Then it works fine. Then, I have 
tested with my original Makefiles. It works fine too then.

Actually, I have two different directories as export and import. The export 
directory has export functions and import directory has import files. When I 
build the export_func.ko file, I got the Module.symvers file with my exported 
function names. However, I got the Module.symvers file in the import directory 
also with ZERO bytes. So, I copied the Module.symvers from export directory to 
import directory, then it works fine without any issues.

I did not understand the Module.symvers issue. However, it contains all the 
exported API names along with the paths. Currently, I am looking into 
Module.symvers. What it is and Why it is required and how? 

If you have any ideas about Module.symvers file, please let me know.

Thanks once again.

With Regards,
Srinivas G

_______________________________________________
To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to