[openib-general] [KDAPL] module initialization order

Roland Dreier roland at topspin.com
Tue May 10 14:17:55 PDT 2005


    roland> It seems that the kDAPL design of having consumers call a
    roland> function to get a list of adapters does not fit very well
    roland> with the Linux model of adapters appearing asynchronously
    roland> due to drivers being loaded or even due to device hotplug.

    James> What would be the correct way to provide consumers this
    James> information in the Linux model?

The kernel currently uses a registration-callback model.  For example
a driver for PCI devices calls pci_register_driver() and then has its
"probe" method called when a device appears (either from "coldplug"
during PCI bus enumeration, or hotplug at an arbitrary time).  This is
parallelled by the IB core's ib_register_client() function, which
allows consumers to get asynchronous add/remove callbacks.

 - R.



More information about the general mailing list