/linux-master/tools/thermal/tmon/ |
H A D | sysfs.c | 283 struct dirent **namelist; local 300 n = scandir(tz_name, &namelist, 0, alphasort); 313 if (find_tzone_tp(tz_name, namelist[n]->d_name, 316 temp_str = strstr(namelist[n]->d_name, "cdev"); 318 free(namelist[n]); 321 if (!find_tzone_cdev(namelist[n], tz_name, 324 free(namelist[n]); 326 free(namelist); 341 struct dirent **namelist; local 362 n = scandir(cdev_name, &namelist, 386 struct dirent **namelist; local [all...] |
/linux-master/tools/lib/api/fs/ |
H A D | tracing_path.h | 9 int tracing_events__scandir_alphasort(struct dirent ***namelist);
|
H A D | tracing_path.c | 111 int tracing_events__scandir_alphasort(struct dirent ***namelist) argument 117 *namelist = NULL; 121 ret = scandir(path, namelist, NULL, alphasort);
|
/linux-master/tools/perf/util/ |
H A D | thread_map.c | 39 struct dirent **namelist = NULL; local 43 items = scandir(name, &namelist, filter, NULL); 50 perf_thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); 56 zfree(&namelist[i]); 57 free(namelist); 80 struct dirent *dirent, **namelist = NULL; local 111 items = scandir(path, &namelist, filter, NULL); 133 atoi(namelist[i]->d_name)); 137 zfree(&namelist[i]); 138 free(namelist); 186 struct dirent **namelist = NULL; local [all...] |
H A D | probe-file.c | 326 struct strlist *namelist; local 334 namelist = __probe_file__get_namelist(fd, true); 335 if (!namelist) 338 strlist__for_each_entry(ent, namelist) { 351 strlist__delete(namelist); 356 int probe_file__del_strlist(int fd, struct strlist *namelist) argument 361 strlist__for_each_entry(ent, namelist) { 371 struct strlist *namelist; local 374 namelist = strlist__new(NULL, NULL); 375 if (!namelist) [all...] |
H A D | probe-file.h | 50 int probe_file__del_strlist(int fd, struct strlist *namelist);
|
H A D | util.h | 62 struct dirent ***namelist,
|
H A D | probe-event.c | 2740 struct strlist *namelist, bool ret_event, 2763 if (!strlist__has_entry(namelist, buf)) 2783 if (!strlist__has_entry(namelist, buf)) 2837 /* Set new name from original perf_probe_event and namelist */ 2840 struct strlist *namelist, 2869 ret = get_new_event_name(buf, 64, event, namelist, 2882 * Add new event name to namelist if multiprobe event is NOT 2887 strlist__add(namelist, event); 2892 struct strlist **namelist) 2901 *namelist 2739 get_new_event_name(char *buf, size_t len, const char *base, struct strlist *namelist, bool ret_event, bool allow_suffix) argument 2838 probe_trace_event__set_name(struct probe_trace_event *tev, struct perf_probe_event *pev, struct strlist *namelist, bool allow_suffix) argument 2891 __open_probe_file_and_namelist(bool uprobe, struct strlist **namelist) argument 2917 struct strlist *namelist[2] = {NULL, NULL}; local 3576 struct strlist *namelist = strlist__new(NULL, NULL); local 3631 struct strlist *namelist = strlist__new(NULL, NULL); local [all...] |
H A D | util.c | 558 struct dirent ***namelist, 569 err = scandir(path, namelist, filter, compar); 557 scandirat(int dirfd, const char *dirp, struct dirent ***namelist, int (*filter)(const struct dirent *), int (*compar)(const struct dirent **, const struct dirent **)) argument
|
H A D | machine.c | 1238 struct dirent **namelist = NULL; local 1251 items = scandir(symbol_conf.guestmount, &namelist, NULL, NULL); 1255 if (!isdigit(namelist[i]->d_name[0])) { 1259 pid = (pid_t)strtol(namelist[i]->d_name, &endp, 10); 1261 (endp == namelist[i]->d_name) || 1264 namelist[i]->d_name); 1269 namelist[i]->d_name); 1278 free(namelist);
|
/linux-master/tools/testing/selftests/ia64/ |
H A D | aliasing-test.c | 64 struct dirent **namelist; local 69 n = scandir(path, &namelist, 0, alphasort); 76 name = namelist[i]->d_name; 111 free(namelist[i]); 113 free(namelist); 149 struct dirent **namelist; local 154 n = scandir(path, &namelist, 0, alphasort); 161 name = namelist[i]->d_name; 200 free(namelist[i]); 202 free(namelist); [all...] |
/linux-master/tools/testing/selftests/alsa/ |
H A D | conf.c | 306 struct dirent **namelist; local 309 n = scandir(fn, &namelist, filename_filter, alphasort); 313 size_t sl = strlen(fn) + strlen(namelist[j]->d_name) + 2; 317 sprintf(filename, "%s/%s", fn, namelist[j]->d_name); 321 free(namelist[j]); 323 free(namelist);
|
/linux-master/tools/usb/usbip/libsrc/ |
H A D | vhci_driver.c | 158 struct dirent **namelist; local 166 n = scandir(udev_device_get_syspath(platform), &namelist, vhci_hcd_filter, NULL); 171 free(namelist[i]); 172 free(namelist);
|
/linux-master/sound/usb/ |
H A D | mixer.c | 2740 char **namelist; local 2781 namelist = kcalloc(desc->bNrInPins, sizeof(char *), GFP_KERNEL); 2782 if (!namelist) { 2789 namelist[i] = kmalloc(MAX_ITEM_NAME_LEN, GFP_KERNEL); 2790 if (!namelist[i]) { 2794 len = check_mapped_selector_name(state, unitid, i, namelist[i], 2797 len = get_term_name(state->chip, &iterm, namelist[i], 2800 sprintf(namelist[i], "Input %u", i); 2809 kctl->private_value = (unsigned long)namelist; 2856 kfree(namelist[ [all...] |