On Wed, Jan 20, 2016 at 11:12:45PM +0100, Rafael J. Wysocki wrote: > > I would dangle _everything_ off the one driver pointer, that's much > > easier. > > I'm not sure how much easier it is in practice. > > Even if everything dangles out of the driver pointer, data structures > pointed to by those things need not be allocated all in one go by the > same entity. Some of them are allocated by drivers, some of them by > the core, at different times.
Yes, I've noticed, some of that is really bonkers. > The ordering between those allocations > and populating the pointers is what matters, not how all that is laid > out in memory. I'm thinking getting that ordering right is easier/more natural, if its all contained in one object. But this could be subjective.

