Lines Matching refs:flex_array
20 struct flex_array { struct
39 (FLEX_ARRAY_BASE_SIZE - offsetof(struct flex_array, parts))
54 struct flex_array __arrayname = { { { \
64 struct flex_array *flex_array_alloc(int element_size, unsigned int total,
66 int flex_array_prealloc(struct flex_array *fa, unsigned int start,
68 void flex_array_free(struct flex_array *fa);
69 void flex_array_free_parts(struct flex_array *fa);
70 int flex_array_put(struct flex_array *fa, unsigned int element_nr, void *src,
72 int flex_array_clear(struct flex_array *fa, unsigned int element_nr);
73 void *flex_array_get(struct flex_array *fa, unsigned int element_nr);
74 int flex_array_shrink(struct flex_array *fa);
79 void *flex_array_get_ptr(struct flex_array *fa, unsigned int element_nr);