我做了unbind usbhID并绑定到我的驱动技巧,但我不想每次都这样做.
我的驱动程序是否已加载?
我应该在驱动程序中编写代码吗?
我的驱动程序中有供应商和产品ID ..
谢谢
解决方法 您需要为设备创建一个udev规则,该规则可以负责创建设备文件,设置设备文件的权限以及加载相关的驱动程序.资源
> http://reactivated.net/writing_udev_rules.html
> http://www.redhat.com/magazine/002dec04/features/udev/
例
摘自:http://plugcomputer.org/plugwiki/index.php/Load_Serial_Drivers_Automatically_Using_udev
# if no driver has claimed the interface yet,load ftdi_sioACTION=="add",SUBSYstem=="usb",ENV{DEVTYPE}=="usb_interface",\ ATTRS{IDvendor}=="9e88",ATTRS{IDProduct}=="9e8f",\ DRIVER=="",\ RUN+="/sbin/modprobe -b ftdi_sio"总结
以上是内存溢出为你收集整理的linux – 使用驱动程序注册(/ bind / match)设备全部内容,希望文章能够帮你解决linux – 使用驱动程序注册(/ bind / match)设备所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)