Re: PCI device initialization.

From: Martin Mares (mj@suse.cz)
Date: Thu Mar 30 2000 - 02:41:50 EST


Hello!

> Is check_region() obsolete?

   Yes, just use the return value of request_region().
 
> If several devices are found the "probe" function will be called
> several times, once per device?

   Yes.

> In the case several devices are found are there any guarantees that
> the "remove" function will be called in the reverse order of "probe"?

   No, in hotplug environment the devices can be removed in any order,
therefore you can get any sequence of probes and removes and the only
thing you can rely on is that nobody will remove a device which was
not inserted ;-)

> Or do I need to be more careful and search the list for the actual
> device being removed and update it accordingly?

   I guess you need your device list for associating your private data
structures with the device for which purpose you can easily use
pci_dev->driver_data.

                                Have a nice fortnight

-- 
Martin `MJ' Mares <mj@ucw.cz> <mj@suse.cz> http://atrey.karlin.mff.cuni.cz/~mj/
"ebius tagline. This is a moebius tagline. This is a mo ..."

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



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:26 EST