设备目录/devices
系统目录/sys下按设备类型分类之后,bus的pci设备,所有加载的驱动位于该目录下/sys/bus/pci/drivers
[root@HAL drivers]# pwd
/sys/bus/pci/drivers
[root@HAL drivers]# ls
agpgart-intel ahci cxgb3 ehci_hcd mptspi pci-stub shpchp virtio-pci
agpgart-sis ata_piix cxgb4 ioapic ohci_hcd piix4_smbus snd_ens1371 xhci_hcd
agpgart-via be2iscsi e1000 langwell_gpio pcieport serial uhci_hcd
看e1000网卡驱动,该驱动接管了三块网卡设备0000:02:01.0(eth0) 0000:02:05.0(eth1) 0000:02:06.0(eth2)
[root@HAL drivers]# ls e1000 -la
总用量 0
drwxr-xr-x 2 root root 0 2月 5 16:53 .
drwxr-xr-x 25 root root 0 2月 2 16:48 ..
lrwxrwxrwx 1 root root 0 2月 5 16:53 0000:02:01.0 -> ../../../../devices/pci0000:00/0000:00:11.0/0000:02:01.0
lrwxrwxrwx 1 root root 0 2月 5 16:53 0000:02:05.0 -> ../../../../devices/pci0000:00/0000:00:11.0/