[英]Linux Kernel Programming - Module 2 unable to get symbols exported by Module 1
I have a Linux kernel module M1 which exports a symbol S1 . 我有一个Linux内核模块M1 ,它输出一个符号S1 。 When I insmod M1.ko , I can see S1 in /proc/kallsyms .
当我安装M1.ko时 ,我可以在/ proc / kallsyms中看到S1 。 I use S1 in another kernel module M2 .
我在另一个内核模块M2中使用S1 。 When I compile and insert module M2 , I get message in dmesg saying "Unknown symbol in module S1".
编译并插入模块M2时 ,在dmesg中收到消息,提示“模块S1中的未知符号”。
I am stumped. 我感到难过。 Can someone please tell me what is going wrong?
有人可以告诉我怎么了吗? I am using Ubuntu 9.10.
我正在使用Ubuntu 9.10。
Is the symbol really exported? 该符号是否真的已导出? If you ask for a modinfo dump of the symbols from M1, is it there?
如果您要求从M1中获取符号的modinfo转储,是否存在?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.