• Home
  • Raw
  • Download

Lines Matching full:array

19 piecing together an array from smaller parts; the flexible array library
22 A flexible array holds an arbitrary (within limits) number of fixed-sized
27 system page size, and putting data into a flexible array requires a copy
29 locking at all; if concurrent access to an array is possible, then the
32 The creation of a flexible array is done with::
41 maximum number of objects which can be stored in the array. The flags
50 This macro will result in a definition of an array with the given name; the
53 Storing data into a flexible array is accomplished with a call to::
55 int flex_array_put(struct flex_array *array, unsigned int element_nr,
58 This call will copy the data from src into the array, in the position
60 the array was created). If any memory allocations must be performed, flags
64 There might possibly be a need to store data into a flexible array while
71 int flex_array_prealloc(struct flex_array *array, unsigned int start,
79 Getting data back out of the array is done with::
87 has never been stored in the array. Memory for array elements is allocated
89 adjacent elements. Flexible array elements are normally initialized to the
91 involving that number probably result from use of unstored array entries.
92 Note that, if array elements are allocated with __GFP_ZERO, they will be
95 Individual elements in the array can be cleared with::
97 int flex_array_clear(struct flex_array *array, unsigned int element_nr);
100 zero. If storage for the indicated element is not allocated for the array,
103 allocated size of an array, call::
105 int flex_array_shrink(struct flex_array *array);
108 This function works by scanning the array for pages containing nothing but
110 if the array's pages are allocated with __GFP_ZERO.
112 It is possible to remove all elements of an array with a call to::
114 void flex_array_free_parts(struct flex_array *array);
116 This call frees all elements, but leaves the array itself in place.
117 Freeing the entire array is done with::
119 void flex_array_free(struct flex_array *array);