Lines Matching refs:string
210 struct string struct
216 char string[0]; member
219 static inline struct string *
222 struct string *cs, *tmp; in alloc_string()
229 if (cs->size > size + sizeof(struct string)) { in alloc_string()
231 tmp = (struct string *) (endaddr - size) - 1; in alloc_string()
233 cs->size -= size + sizeof(struct string); in alloc_string()
246 free_string(struct list_head *free_list, struct string *cs) in free_string()
248 struct string *tmp; in free_string()
254 if (list_entry(p, struct string, list) > cs) in free_string()
260 tmp = list_entry(left->next, struct string, list); in free_string()
263 cs->size += tmp->size + sizeof(struct string); in free_string()
268 tmp = list_entry(left, struct string, list); in free_string()
270 tmp->size += cs->size + sizeof(struct string); in free_string()
281 struct string *cs; in add_string_memory()
283 cs = (struct string *) mem; in add_string_memory()
284 cs->size = size - sizeof(struct string); in add_string_memory()