I have two modules mod_X.ko and mod_Y.ko. I have defined a variable var in mod_X/ as follows:
File filex.c
int var = 1000; EXPORT_SYMBOL(var); <
int var = 1000; EXPORT_SYMBOL(var);