Querry related to exporting Symbols
Hi, My question is, 1: can two modules export symbols to "each other". (exporting symbol and including .h file is sufficient??) 2: I am compiling a kernel module and exporting few symbols, which another kernel module (compiled with option obj-y ) will use. Is it possible first of all? what is the way to achieve this (exporting symbol and including .h file is sufficient??) thanks in advance, Vishwas Srivastava
On Sat, Nov 16, 2013 at 12:36 PM, Vishwas Srivastava <vishu.kernel@gmail.com> wrote:
Hi, My question is, 1: can two modules export symbols to "each other". (exporting symbol and including .h file is sufficient??)
Perhaps not to each other. Since kernel needs to resolve all symbols so if they exported to each other you would have circular dependency. Well you need to have a prototype doesn't matter where you put it. .ko files are only compiled object files without the linkage stage. Symbol resolution and final load is done by kernel itself.
2: I am compiling a kernel module and exporting few symbols, which another kernel module (compiled with option obj-y ) will use. Is it possible first of all? what is the way to achieve this (exporting symbol and including .h file is sufficient??)
you load the independent module first then load the dependent module
thanks in advance,
Vishwas Srivastava
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- ---P.K.S
participants (2)
-
Pranay Srivastava -
Vishwas Srivastava