linux设备驱动模块引用和依赖
生活随笔
收集整理的這篇文章主要介紹了
linux设备驱动模块引用和依赖
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
/modules/04 # lsmod test 787 0 - Live 0xbf010000 (PO)func 633 1 test, Live 0xbf00c000 (PO) test -> func^ 引用計數(shù)/modules/04 # rmmod func 引用計數(shù)>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 <-- 引用計數(shù)>0 不能卸載modprobe: remove 'func': Resource temporarily unavailable/ # modprobe -r test <-- rmmod test.ko ; rmmod func.ko[ 363.130000] cleanup module
總結(jié)
以上是生活随笔為你收集整理的linux设备驱动模块引用和依赖的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 计算机网络 学习笔记-概论
- 下一篇: objectvie-c 数组特别遍历方法