Lines Matching refs:slab_info
19 struct slab_info {
21 struct slab_info *next;
46 typedef int (*sort_t)(const struct slab_info *, const struct slab_info *);
58 * Returns the head of the new list of slab_info structures, or NULL on error.
60 static struct slab_info * get_slabinfo(struct slab_stat *stats)
62 struct slab_info *head = NULL, *p = NULL, *prev = NULL;
97 p = malloc(sizeof (struct slab_info));
158 * provided slab_info linked list
160 static void free_slablist(struct slab_info *list)
163 struct slab_info *temp = list->next;
169 static struct slab_info *merge_objs(struct slab_info *a, struct slab_info *b)
171 struct slab_info list;
172 struct slab_info *p = &list;
191 * slabsort - merge sort the slab_info linked list based on sort_func
193 static struct slab_info *slabsort(struct slab_info *list)
195 struct slab_info *a, *b;
218 * int sort_foo(const struct slab_info *a, const struct slab_info *b)
224 static int sort_name(const struct slab_info *a, const struct slab_info *b)
231 (const struct slab_info *a, const struct slab_info *b) { \
272 struct slab_info *list, *p;