Re: PATCH: type safe(r) list_entry repacement: generic_out_cast

Christoph Hellwig (hch@infradead.org)
Tue, 23 Jul 2002 17:36:23 +0100


On Tue, Jul 23, 2002 at 09:28:26PM +1000, Neil Brown wrote:
> So... I have created "generic_out_cast" which is like the old
> list_entry but with an extra type arguement. I have then
> changed uses of list_entry that did not actually apply to lists to use
> generic_out_cast, often indirectly.

Two small nitpicks:
* the name is silly. what about get_container()?
* please move it away from list.h to e.g. kernel.h

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/