|
写了一个模块,想在模块初始化时调用本地文件中的一些配置信息
但不知内核态下能不能调用open(),read(),write()这些文件操作函数。写了一个小程序想验证,编译没有问题,但插入设备时报错:
[root@Wizard module]# /sbin/insmod temp.o
temp.o: unresolved symbol open
temp.o: unresolved symbol read
temp.o:
Hint: You are trying to load a module without a GPL compatible license
and it has unresolved symbols. The module may be trying to access
GPLONLY symbols but the problem is more likely to be a coding or
user error. Contact the module supplier for assistance, only they
can help you.
谁能够帮忙解释一下怎么回事?
如果内核态下不能直接用read/write读写文件,哪又该怎么实现我的需求呢? |
|