~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/linux/flex_array.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
                struct {
22
22
                        int element_size;
23
23
                        int total_nr_elements;
 
24
                        int elems_per_part;
 
25
                        u32 reciprocal_elems;
24
26
                        struct flex_array_part *parts[];
25
27
                };
26
28
                /*
61
63
struct flex_array *flex_array_alloc(int element_size, unsigned int total,
62
64
                gfp_t flags);
63
65
int flex_array_prealloc(struct flex_array *fa, unsigned int start,
64
 
                unsigned int end, gfp_t flags);
 
66
                unsigned int nr_elements, gfp_t flags);
65
67
void flex_array_free(struct flex_array *fa);
66
68
void flex_array_free_parts(struct flex_array *fa);
67
69
int flex_array_put(struct flex_array *fa, unsigned int element_nr, void *src,