diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2012-10-08 11:45:29 +0100 |
---|---|---|
committer | Anthony PERARD <anthony.perard@citrix.com> | 2012-10-08 11:45:29 +0100 |
commit | 4457702a84713bf06dc861bc2873b964dd6fa949 (patch) | |
tree | 303e735ba00b47069cbe742947cc36abf4b6db87 /tools/libxl | |
parent | 5bce815d5d998383dd46a39dad9d46492aa6524f (diff) | |
download | xen-4457702a84713bf06dc861bc2873b964dd6fa949.tar.gz xen-4457702a84713bf06dc861bc2873b964dd6fa949.tar.bz2 xen-4457702a84713bf06dc861bc2873b964dd6fa949.zip |
libxl: Add a comment about NOGC usage with flexarray
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl')
-rw-r--r-- | tools/libxl/flexarray.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/libxl/flexarray.h b/tools/libxl/flexarray.h index aade417906..a1e86475c4 100644 --- a/tools/libxl/flexarray.h +++ b/tools/libxl/flexarray.h @@ -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); |