[转]绑定设备到驱动

转自:

https://lwn.net/Articles/143397/

https://github.com/andre-richter/vfio-pci-bind

https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-pci

或者参考spdk/scripts/setup.sh

 

 

echo  设备号  >   /sys/bus........等设备驱动路径下/bind或unbind

之后该设备路径下的 “driver” 就会指向绑定的driver路径,若是unbind,那么“driver”会不见

posted @ 2019-12-04 10:43  yimuxi  阅读(198)  评论(0编辑  收藏  举报