Re: linux PCI hotplug

Greg KH (
Sat, 30 Mar 2002 08:22:43 -0800

On Sat, Mar 30, 2002 at 06:09:56AM -0800, Ashok Raj wrote:
> Hello.
> I have a question on pci hotplug capability.
> when a new device is inserted, the hotplug driver enumerates pci, and if the
> driver is already loaded....
> for each new device
> pci_insert->pci_announce->pci_probe
> if i need to remove a device, the pci_remove would be called, but it does
> not call to check if the device is ready for removal. If there are other
> apps working on this device, how would the hotplug removal be authenticated
> before removal?

What function can the pci_hotplug core call to "check"?

> pci_remove() has no return value, means it cannot fail....

This is correct. If the user asks for the device to be powered down, it
will be powered down, even if the driver attached to that device is busy
doing something.

For 2.5, this will probably change, as we will have the option to ask
the driver if it's ok to shutdown (better power management hooks.)


greg k-h
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at