On Sun, Sep 03, 2017 at 01:18:44PM -0700, Kees Cook wrote: > It feels weird to have different semantics from container_of() too, so > I'll probably just switch everything around to be like all the others, > in that they are just direct wrappers around container_of()... I'll > settle on something and switch everything over.
I really like the idea of passing in a variable and not the type, though. Maybe we need to add a new generic helper for that, I just can't think of a good name.