linux设备驱动模块引用和依赖
2016-05-12 10:15
615 查看
/modules/04 # lsmod test 787 0 - Live 0xbf010000 (PO) func 633 1 test, Live 0xbf00c000 (PO) test -> func ^ 引用计数 /modules/04 # rmmod func 引用计数>0 不能卸载 rmmod: remove 'func': Resource temporarily unavailable modprobe自动解决依赖: / # modprobe test [ 307.800000] test: Unknown symbol print (err 0) [ 307.850000] hello kernel <-- insmod func.ko ; insmod test.ko / # lsmod test 787 0 - Live 0xbf01c000 (PO) func 633 1 test, Live 0xbf018000 (PO) / # modprobe -r func <-- 引用计数>0 不能卸载 modprobe: remove 'func': Resource temporarily unavailable / # modprobe -r test <-- rmmod test.ko ; rmmod func.ko [ 363.130000] cleanup module
相关文章推荐
- linux设备驱动模块引用和依赖
- 在 Linux 下用户空间与内核空间数据交换的方式,第 1 部分: 内核启动参数、模块参数与sysfs、sysctl、系统调用和netlink
- Linux基础知识集锦
- linux 中 too many open files
- CentOS7安装Chrome浏览器
- Linux 系统内核空间与用户空间通信的实现与分析
- Android在标准linux基础上对休眠唤醒的实现
- linux提权总结
- linux部署jdk脚本文件
- Linux下安装Android的adb驱动-解决不能识别的问题
- Centos 7.2 KVM 配置
- Linux上JDK的安装和卸载
- 【 总结 】linux中test命令详解
- ubuntu软件源更新及其中会遇到的各种问题(以下ID的密钥没有可用的公钥)
- CentOS6.5&7更改开机启动时的CentOS标题
- Linux开启关闭防火墙
- Linux下挂载新硬盘
- CentOS 6.5 iso系统定制
- rsync 备份 CENTOS 系统!
- 如何调整Linux内核启动中的驱动初始化顺序-驱动加载优先级