Re: [PATCH] Document flexible arrays

From: David Rientjes
Date: Tue Sep 08 2009 - 20:21:24 EST


On Tue, 8 Sep 2009, Jonathan Corbet wrote:

> Document the flex_array library.
>
> A brief document on how to use flexible arrays, derived from an article
> first published on LWN.
>
> Signed-off-by: Jonathan Corbet <corbet@xxxxxxx>

Hmm, there are a number of changes in -mm that conflict with the
description given in this document (element poisoning, DEFINE_FLEX_ARRAY,
array shrinking, etc). Perhaps this could be based on the -mm behavior
and get pushed through Andrew so that it's consistent when merged for
2.6.32?

Thanks for writing this up, it's very descriptive and understandable. I
think there's some question right now about whether flex arrays will be
very popular given we haven't identified any potential users at the
moment, though. Adding this documentation may help in getting new code to
use it and inspire existing code to convert, so I think it's a good idea
if flex arrays are indeed here to stay.
--
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/