libxl: Add a comment about NOGC usage with flexarray
PATCH 1/1 libxl: Add a comment about NOGC usage with flexarray
Signed-off-by Anthony PERARD <[email protected]>
--- tools/libxl/flexarray.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
tools/libxl/flexarray.h +7 -1
@@ -26,7 +26,13 @@ typedef struct flexarray {struct libxl__gc *gc; } flexarray_t; -_hidden flexarray_t *flexarray_make(struct libxl__gc *gc, int size, int autogrow); +/* +* NOGC can be used with flexarrays, but flexarray_free will need to be called +* to free the struct. The content of the flexarray will not be freed through +* flexarray_free. +*/ +_hidden flexarray_t *flexarray_make(struct libxl__gc *gc_opt, +int size,int autogrow); _hidden void flexarray_free(flexarray_t *array); _hidden void flexarray_grow(flexarray_t *array, int extents); _hidden int flexarray_set(flexarray_t *array, unsigned int index, void *ptr);
Signature · 1 line
Anthony PERARD
Anthony PERARD writes ("[PATCH] libxl: Add a comment about NOGC usage with flexarray"):
Quoted 1 line
Signed-off-by Anthony PERARD <[email protected]>
Acked-by Ian Jackson <[email protected]>
Ian Campbell
AppliedQuoted 4 lines · Ian Jackson
Anthony PERARD writes ("[PATCH] libxl: Add a comment about NOGC usage with flexarray"):
Quoted 1 line
Signed-off-by Anthony PERARD <[email protected]>Acked-by Ian Jackson <[email protected]>
Applied, thanks.