Symbol machine_power_off
is marked with "T" in /proc/kallsyms
:
$ grep -w machine_power_off /proc/kallsyms
ffffffff8102391b T machine_power_off
But it is not exported. Is "T" in kallsyms necessary and sufficient for a symbol to be exported? Is being exported necessary and sufficient for using in other modules?
My module using it is compiled with a warning:
WARNING: "machine_power_off" [/path/to/module.ko] undefined!
On host machine (3.2.0-4-amd64) I can load this module, but on VirtualBox (3.16.0-4-amd64) it produces the following message:
insmod: ERROR: could not insert module module.ko: Unknown symbol in module
Why is this module loaded in my host system, but not in VirtualBox?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…