diff options
author | Alex Chiang <achiang@hp.com> | 2009-03-20 16:56:31 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-03-20 17:57:58 -0400 |
commit | 705b1aaa823e800490f157cd9366ad8cff385f5f (patch) | |
tree | 634ea8ba227a305074938f49c110fea8e68e8bb3 /drivers/pci/pci.h | |
parent | 3ed4fd96b3188406ac5357d9290bcffa08c65cf6 (diff) |
PCI: Introduce /sys/bus/pci/rescan
This interface allows the user to force a rescan of all PCI buses
in system, and rediscover devices that have been removed earlier.
pci_bus_attrs implementation from Trent Piepho.
Thanks to Vegard Nossum for discovering locking issues with the
sysfs interface.
Cc: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 22dcfdb75d91..45833a5bca61 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -138,6 +138,12 @@ extern int pcie_mch_quirk; | |||
138 | extern struct device_attribute pci_dev_attrs[]; | 138 | extern struct device_attribute pci_dev_attrs[]; |
139 | extern struct device_attribute dev_attr_cpuaffinity; | 139 | extern struct device_attribute dev_attr_cpuaffinity; |
140 | extern struct device_attribute dev_attr_cpulistaffinity; | 140 | extern struct device_attribute dev_attr_cpulistaffinity; |
141 | #ifdef CONFIG_HOTPLUG | ||
142 | extern struct bus_attribute pci_bus_attrs[]; | ||
143 | #else | ||
144 | #define pci_bus_attrs NULL | ||
145 | #endif | ||
146 | |||
141 | 147 | ||
142 | /** | 148 | /** |
143 | * pci_match_one_device - Tell if a PCI device structure has a matching | 149 | * pci_match_one_device - Tell if a PCI device structure has a matching |