Re: [PATCH] flex_array: add helpers to get and put to make pointerseasy to use

From: David Rientjes
Date: Tue Aug 03 2010 - 16:56:12 EST


On Tue, 3 Aug 2010, Eric Paris wrote:

> Getting and putting arrays of pointers with flex arrays is a PITA. You
> have to remember to pass &ptr to the _put and you have to do weird and
> wacky casting to get the ptr back from the _get. Add two functions
> flex_array_get_ptr() and flex_array_put_ptr() to handle all of the magic.
>

There's no code currently in the tree that uses the flex array interface,
so is this something that you've encountered in practice or only by
inspection? If it's the former, is that code on its way for 2.6.36?

I'm hoping distros aren't creating internal dependencies on this interface
that could practically be removed from upstream at any time given its lack
of popularity.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/