现在测试一个简单的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]
我要赚赏金打赏帖 |
|
|---|---|
| 【S32DS】S32K3 RTD7.0.1 HSE 组件配置报错问题解决被打赏¥27元 | |
| 【S32K3XX】MCME 启动 CORE1被打赏¥23元 | |
| AG32VH407下温度大气压传感器及其检测被打赏¥20元 | |
| AG32VH407下光照强度传感器BH1750及其检测被打赏¥22元 | |
| AT32VH407下使用温湿度传感器DHT22进行检测被打赏¥20元 | |
| DIY一个婴儿澡盆温度计被打赏¥34元 | |
| 【FreeRtos】FreeRtos+MPU region 配置规则被打赏¥23元 | |
| 【分享开发笔记,赚取电动螺丝刀】三分钟快速上手驱动墨水屏(ArduinoIDE)被打赏¥28元 | |
| 【S32K3XX】LIN 通讯模块使用被打赏¥31元 | |
| 【FreeRtos】FreeRtos + MPU模块的配置使用被打赏¥32元 | |
我要赚赏金
