????Linux????2.6.13-rc3?????????????????????????????豸???豸???????????????????????????????insmod??modprobe????rmmod?????????????????????????????????????豸??????μ?????????????????????豸?????????
??????????????pci?????nvme ssd????????????lspci??????е?nvme ssd??
????# lspci | grep memory
????01:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a802 (rev 01)
????09:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd Device a802 (rev 01)
???????????????nvme ssd??????????????/dev????????nvme?豸??OS???????????nvme????????
????# ls /dev/nvme*
????/dev/nvme0 /dev/nvme0n1p2 /dev/nvme0n1 /dev/nvme0n1p3 /dev/nvme0n1p1 /dev/nvme1 /dev/nvme1n1
???????????????е?nvme?豸????????????pci????bdf???09:00.0??ssd???????????????nvme??????????????У?bind??unbind??????漰????????????????
/sys/bus/pci/drivers/nvme# ll
total 0
drwxr-xr-x  2 root root    0 Jan  4 17:10 ./
drwxr-xr-x 30 root root    0 Jan  4 17:10 ../
lrwxrwxrwx  1 root root    0 Jan  4 20:49 0000:01:00.0 -> ../../../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/
lrwxrwxrwx  1 root root    0 Jan  4 20:49 0000:09:00.0 -> ../../../../devices/pci0000:00/0000:00:03.0/0000:05:00.0/0000:06:0a.0/0000:07:00.0/0000:08:01.0/0000:09:00.0/
--w-------  1 root root 4096 Jan  4 20:46 bind
lrwxrwxrwx  1 root root    0 Jan  4 20:49 module -> ../../../../module/nvme/
--w-------  1 root root 4096 Jan  4 20:49 new_id
--w-------  1 root root 4096 Jan  4 20:49 remove_id
--w-------  1 root root 4096 Jan  4 17:10 uevent
--w-------  1 root root 4096 Jan  4 17:10 unbind
??????????nvme?豸????軔?豸??pci????bdf??д??/sys/bus/pci/drivers/nvme????????豸?????????/unbind?????
????/sys/bus/pci/drivers/nvme# echo -n "0000:09:00.0" > unbind
?????????????????????????????????2????ж?????豸??????/dev?????ж????nvme?豸???
/sys/bus/pci/drivers/nvme# ll
total 0
drwxr-xr-x  2 root root    0 Jan  4 20:51 ./
drwxr-xr-x 30 root root    0 Jan  4 20:49 ../
lrwxrwxrwx  1 root root    0 Jan  4 20:49 0000:01:00.0 -> ../../../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/
--w-------  1 root root 4096 Jan  4 20:46 bind
lrwxrwxrwx  1 root root    0 Jan  4 20:49 module -> ../../../../module/nvme/
--w-------  1 root root 4096 Jan  4 20:49 new_id
--w-------  1 root root 4096 Jan  4 20:49 remove_id
--w-------  1 root root 4096 Jan  4 20:49 uevent
--w-------  1 root root 4096 Jan  4 20:51 unbind
?????????nvme?豸??????????????豸??pci????bdf??д??/sys/bus/pci/drivers/nvme????????豸?????????/bind??
????/sys/bus/pci/drivers/nvme# echo -n "0000:09:00.0" > bind
?????????????????????????????????????????豸??γ????
/sys/bus/pci/drivers/nvme# ll
total 0
/sys/bus/pci/drivers/nvme# ll
total 0
drwxr-xr-x  2 root root    0 Jan  5 09:13 ./
drwxr-xr-x 30 root root    0 Jan  4 20:49 ../
lrwxrwxrwx  1 root root    0 Jan  4 20:49 0000:01:00.0 -> ../../../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/
lrwxrwxrwx  1 root root    0 Jan  5 09:13 0000:09:00.0 -> ../../../../devices/pci0000:00/0000:00:03.0/0000:05:00.0/0000:06:0a.0/0000:07:00.0/0000:08:01.0/0000:09:00.0/
--w-------  1 root root 4096 Jan  5 09:13 bind
lrwxrwxrwx  1 root root    0 Jan  4 20:49 module -> ../../../../module/nvme/
--w-------  1 root root 4096 Jan  4 20:49 new_id
--w-------  1 root root 4096 Jan  4 20:49 remove_id
--w-------  1 root root 4096 Jan  4 20:49 uevent
--w-------  1 root root 4096 Jan  4 20:51 unbind