Re: pci: dev->driver "runtime" acquisition?

Greg KH (greg@kroah.com)
Mon, 3 Dec 2001 19:22:36 -0800


On Mon, Dec 03, 2001 at 06:29:57PM +0100, Daniel Stodden wrote:
> hi.
>
> supposing i've got a "hotplug" style pci_driver,

Any hints on what kind of driver this is? :)

> but who's going to gain access to a device _not_ at initialization time,
> i.e. not within pci_register_driver(), but rather somehere in a bottom
> half. no pci_device_id* at pci_register_driver( ), since i don't
> know the signature yet.

Take a look at the pci_read_config_*_nodev() and
pci_write_config_*_nodev() functions in the
drivers/hotplug/pci_hotplug.h file. Do these functions help you out?

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/