这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » insmod为什么有这种错误?

共1条 1/1 1 跳转至

insmod为什么有这种错误?

菜鸟
2004-07-08 00:17:36     打赏
现在测试一个简单的Linux下的驱动程序
如果不用copy_to_user,copy_from_user,则可以顺利通过
但用copy_to_user或者copy_from_user,就出错 我只是用copy做简单的测试,如下:
static int write_Test(struct inode * inode, struct file * file,
char * buffer, int count)
{
char tmp1[20];
copy_from_user(tmp1,buffer,count); return 0;}

编译能通过,但是不能加载: Warning: loading test.o will taint the kernel: forced load
test.o: init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
不知有什么错,望各位指点! [align=right][color=#000066][此贴子已经被作者于2004-7-8 11:15:15编辑过][/color][/align]



关键词: insmod     为什么     这种     错误    

共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]