主题 : 模块加载问题 复制链接 | 浏览器收藏 | 打印
gzj
级别: 新手上路
UID: 9996
精华: 0
发帖: 8
金钱: 70 两
威望: 32 点
综合积分: 16 分
注册时间: 2009-10-21
最后登录: 2010-05-04
楼主  发表于: 2010-05-02 13:00

 模块加载问题

做了一个测试模块,加载的时候显示

insmod: cannot insert 'test_char.ko': Success
显示cannot insert 但是有success。
再一次加载的时候就是
insmod: cannot insert 'test_char.ko': Operation not permitted

非法操作了,

是不是代表已经加载了?lsmod没东西。

等待高手指点!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-05-02 22:15
不是
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
gzj
级别: 新手上路
UID: 9996
精华: 0
发帖: 8
金钱: 70 两
威望: 32 点
综合积分: 16 分
注册时间: 2009-10-21
最后登录: 2010-05-04
2楼  发表于: 2010-05-03 22:59

 回 1楼(kasim) 的帖子

那原因会有哪些呢?该从什么方向去解决?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-05-04 09:48

 回 2楼(gzj) 的帖子

抱歉,没有看到你的驱动源代码之前,我没办法确定
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."