Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/pci



On Thu, Sep 10, 2009 at 09:01:02AM +0900, Izumi Tsutsui wrote:
> > > Let the programmer of drivers add a bus-dependent PMF hook in the bus
> > > attachment routine, and a bus-independent PMF hook in the generic attach
> > > routine.  Something like this, for example,
> > 
> > How much duplication between the bus-dependent frontend really exists?
> > Other than PCI/Cardbus which are essentially the same...
> 
> Most shutdown hooks and pmf_class_foo_register()?

You can't move the class registering into device_t as e.g. the network
class has to know the ifp. The shutdown hook can be directly shared
between frontend already if all do the same thing. If all your frontends
directly call the backend, you can also push the register calls down.
I still don't see what splitting between bus-dependent and
bus-indepedent for the suspend/resume (and shutdown) hooks really buys.

Joerg


Home | Main Index | Thread Index | Old Index