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?
dlopen
anddlsym
? – Eat