小弟Linux kernel新手
一个loadable module code中的function称为A
另一个linux kernel的source code称为B
目前的问题是我需要让B呼叫A
在B中include A 的header档,在link time发生如题的错误讯息(compile time没错!)
作者:
ah7675 (阿毛)
2016-02-11 23:39:00在module a还没被加载前你的module要怎么运作?
@so大,已经export_symbol了@ah大,B有使用sysfs方式来做开关的动作
作者:
ah7675 (阿毛)
2016-02-12 23:40:00vmlinux本身在runtime是不能修改的(虽然有例外),所以linker必须要在linking时先填好address才行
我有将一样的问题发问在stackoverflowgoo.gl/dr92RX
stackoverflow的解法的确不错,其实那就是C++的虚拟类别or Java 的Interface的精神