LINUX驱动学习:加载模块时出现Device or resource busy的解决方法
来源:互联网 发布:淘宝服务市场 第三方 编辑:程序博客网 时间:2024/04/30 09:51
学习《Linux 设备驱动开发详解》一书的第6章过程中,编译好globalmem驱动模块后,通过insmod加载模块时发现以下错误提示:
# insmod globalmem.ko
insmod: error inserting 'globalmem.ko': -1 Device or resource busy
因为是刚开始学LINUX驱动程序,又是通过VMware安装的LINUX操作系统。怀疑是操作系统的问题,后来仔细想想,既然模块都编译通过了,那系统应该是没有什么问题。
敲了一条命令:cat /proc/devices
Character devices:
1 mem
2 pty
3 ttyp
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
6 lp
7 vcs
10 misc
13 input
21 sg
29 fb
128 ptm
136 pts
180 usb
189 usb_device
254 vmci
Block devices:
1 ramdisk
2 fd
7 loop
8 sd
9 md
22 ide1
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp
突然想起globalmem.c程序中设定的主设备号也是254,和上面的vmci应该有冲突。所以加载时才出现上面的提示。
解决方法:更换一个上表未使用的的主设备号,或者直接让系统自动分配
- LINUX驱动学习:加载模块时出现Device or resource busy的解决方法
- LINUX驱动学习:加载模块时出现Device or resource busy的解决方法
- LINUX驱动学习:加载模块时出现Device or resource busy的解决方法
- 加载驱动模块时Device or resource busy的解决方法
- 加载驱动模块时Device or resource busy的解决方法
- 【解决问题】加载驱动模块时Device or resource busy的解决方法
- 编译linux 驱动出现device or resource busy问题
- 在加载模块时出现cannot insert '*.ko': Device or resource busy错误
- rmmod 时出现device or resource busy
- Device or resource busy
- Device or resource busy
- ERROR: Removing 'hello': Device or resource busy //关于使用系统定义的模块加载和卸载函数
- 插入模块出现Error: could not insert module testsecond.ko: Device or resource busy
- 驱动加载错误:insmod: error inserting 'hello.ko': -1 Device or resource busy
- mount device or resource busy
- ubuntu12.04 insmod&rmmod出现Error:Device or resource busy
- ubuntu 12.04出现insmod: error inserting 'hello.ko': -1 Device or resource busy的解决办法
- Linux umount设备时出现device is busy解决方法
- 程序猿 爱情观
- select, poll和epoll的区别——网络资料自结
- 启蒙总是从记忆开始
- 为大量用户服务的服务端网络架构设计(负载均衡相关)
- android webView 文字、图片分别加载。乱码问题
- LINUX驱动学习:加载模块时出现Device or resource busy的解决方法
- python vs perl
- Python win32口操作Excel
- javascript数组去重复
- Java AWT Class Hierarchy
- 吟的一手好诗
- EmEditor部分快捷键 设置
- cl_simple_tree_model --- 1
- ScriptManager.RegisterStartupScript()方法