How to export variables in between two modules?

前端 未结 0 1150
逝去的感伤
逝去的感伤 2021-01-17 15:03

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);
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题