[openib-general] Proposed device enumeration & async event APIs

Michael S. Tsirkin mst at mellanox.co.il
Sun Sep 12 12:58:54 PDT 2004


Hello!
Quoting r. Roland Dreier (roland at topspin.com) "Re: [openib-general] Proposed device enumeration & async event APIs":
>     Fab> How do the above pci_xxx_drvdata functions avoid a malloc?
>     Fab> Can we do something similar?  Either way, I think your
>     Fab> proposed API will work fine.
> 
> The pci functions only support a single driver, so they can just use a
> single void * driver_data member of the struct device.  Since IB
> allows multiple consumers, the options are to have a table with a
> static limit, or to dynamically allocate context for each consumer as
> it gets used.  I really don't like having static limits so I chose the
> second option.

Am I right that you need the ib core loaded always (in a way
similiar to how you need ip core loaded always) and then ulps
plug in from above and devices from below?

I'm still not sure how ULPs are loaded on a hotplug event when
a device is added, though.

MST




More information about the general mailing list