Compilation issue in module programming

Hi, I am writing a module, that communicates to the other module by queues. I am using sys_msgget and related functions. I have assumed, if the symbol is present on /proc/kallsyms then the other modules can refer symbol. For an example, the sys_msgget is appeared on the symboltable. But it is not exported by any one of the files(EXPORT_SYMBOL). So when i tried to use the sys_msgget to create a message queue, my module was compiled with the warning and it never loaded with insmod. It always says it could not resove the symbol sys_msgget. So i added EXPORT_SYMBOL(sys_msgget) in arch/arm/kernel/armksyms.c. then build the image and my module. Then the insmod works with my module without any problem. My question is that can i do this way??. Can i use sys_msgget in module programming??. Since it is not explicitly exported i have the doubhts.

Reply to
remo
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.