Lines Matching refs:ralloc_header
54 struct ralloc_header struct
59 struct ralloc_header *parent; argument
62 struct ralloc_header *child; argument
65 struct ralloc_header *prev; argument
66 struct ralloc_header *next; argument
71 typedef struct ralloc_header ralloc_header; typedef
73 static void unlink_block(ralloc_header *info);
74 static void unsafe_free(ralloc_header *info);
76 static ralloc_header *
79 ralloc_header *info = (ralloc_header *) (((char *) ptr) - in get_header()
80 sizeof(ralloc_header)); in get_header()
85 #define PTR_FROM_HEADER(info) (((char *) info) + sizeof(ralloc_header))
88 add_child(ralloc_header *parent, ralloc_header *info) in add_child()
109 void *block = calloc(1, size + sizeof(ralloc_header)); in ralloc_size()
111 ralloc_header *info = (ralloc_header *) block; in ralloc_size()
112 ralloc_header *parent = ctx != NULL ? get_header(ctx) : NULL; in ralloc_size()
134 ralloc_header *child, *old, *info; in resize()
137 info = realloc(old, size + sizeof(ralloc_header)); in resize()
201 ralloc_header *info; in ralloc_free()
212 unlink_block(ralloc_header *info) in unlink_block()
231 unsafe_free(ralloc_header *info) in unsafe_free()
234 ralloc_header *temp; in unsafe_free()
251 ralloc_header *info, *parent; in ralloc_steal()
267 ralloc_header *info; in ralloc_parent()
297 ralloc_header *info = get_header(ptr); in ralloc_set_destructor()