Lines Matching full:strings
376 static unsigned int count_strings(const char *strings, unsigned int len) in count_strings() argument
381 for (p = strings, num = 0; p < strings + len; p += strlen(p) + 1) in count_strings()
399 static char **split(char *strings, unsigned int len, unsigned int *num) in split() argument
403 /* Count the strings. */ in split()
404 *num = count_strings(strings, len); in split()
409 kfree(strings); in split()
412 memcpy(&ret[*num], strings, len); in split()
413 kfree(strings); in split()
415 strings = (char *)&ret[*num]; in split()
416 for (p = strings, *num = 0; p < strings + len; p += strlen(p) + 1) in split()
425 char *strings, *path; in xenbus_directory() local
432 strings = xs_single(t, XS_DIRECTORY, path, &len); in xenbus_directory()
434 if (IS_ERR(strings)) in xenbus_directory()
435 return (char **)strings; in xenbus_directory()
437 return split(strings, len, num); in xenbus_directory()