/kernel/linux/linux-5.10/tools/perf/util/ |
D | thread_map.c | 38 struct dirent **namelist = NULL; in thread_map__new_by_pid() local 42 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid() 49 perf_thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); in thread_map__new_by_pid() 55 zfree(&namelist[i]); in thread_map__new_by_pid() 56 free(namelist); in thread_map__new_by_pid() 79 struct dirent *dirent, **namelist = NULL; in __thread_map__new_all_cpus() local 110 items = scandir(path, &namelist, filter, NULL); in __thread_map__new_all_cpus() 131 atoi(namelist[i]->d_name)); in __thread_map__new_all_cpus() 135 zfree(&namelist[i]); in __thread_map__new_all_cpus() 136 free(namelist); in __thread_map__new_all_cpus() [all …]
|
D | probe-file.c | 291 struct strlist *namelist; in probe_file__get_events() local 299 namelist = __probe_file__get_namelist(fd, true); in probe_file__get_events() 300 if (!namelist) in probe_file__get_events() 303 strlist__for_each_entry(ent, namelist) { in probe_file__get_events() 316 strlist__delete(namelist); in probe_file__get_events() 321 int probe_file__del_strlist(int fd, struct strlist *namelist) in probe_file__del_strlist() argument 326 strlist__for_each_entry(ent, namelist) { in probe_file__del_strlist() 336 struct strlist *namelist; in probe_file__del_events() local 339 namelist = strlist__new(NULL, NULL); in probe_file__del_events() 340 if (!namelist) in probe_file__del_events() [all …]
|
D | probe-event.c | 2684 struct strlist *namelist, bool ret_event, in get_new_event_name() argument 2707 if (!strlist__has_entry(namelist, buf)) in get_new_event_name() 2727 if (!strlist__has_entry(namelist, buf)) in get_new_event_name() 2779 struct strlist *namelist, in probe_trace_event__set_name() argument 2808 ret = get_new_event_name(buf, 64, event, namelist, in probe_trace_event__set_name() 2826 strlist__add(namelist, event); in probe_trace_event__set_name() 2831 struct strlist **namelist) in __open_probe_file_and_namelist() argument 2840 *namelist = probe_file__get_namelist(fd); in __open_probe_file_and_namelist() 2841 if (!(*namelist)) { in __open_probe_file_and_namelist() 2856 struct strlist *namelist[2] = {NULL, NULL}; in __add_probe_trace_events() local [all …]
|
D | probe-file.h | 50 int probe_file__del_strlist(int fd, struct strlist *namelist);
|
D | machine.c | 1205 struct dirent **namelist = NULL; in machines__create_guest_kernel_maps() local 1218 items = scandir(symbol_conf.guestmount, &namelist, NULL, NULL); in machines__create_guest_kernel_maps() 1222 if (!isdigit(namelist[i]->d_name[0])) { in machines__create_guest_kernel_maps() 1226 pid = (pid_t)strtol(namelist[i]->d_name, &endp, 10); in machines__create_guest_kernel_maps() 1228 (endp == namelist[i]->d_name) || in machines__create_guest_kernel_maps() 1231 namelist[i]->d_name); in machines__create_guest_kernel_maps() 1236 namelist[i]->d_name); in machines__create_guest_kernel_maps() 1245 free(namelist); in machines__create_guest_kernel_maps()
|
/kernel/linux/linux-5.10/tools/thermal/tmon/ |
D | sysfs.c | 281 struct dirent **namelist; in scan_tzones() local 298 n = scandir(tz_name, &namelist, 0, alphasort); in scan_tzones() 311 if (find_tzone_tp(tz_name, namelist[n]->d_name, in scan_tzones() 314 temp_str = strstr(namelist[n]->d_name, "cdev"); in scan_tzones() 316 free(namelist[n]); in scan_tzones() 319 if (!find_tzone_cdev(namelist[n], tz_name, in scan_tzones() 322 free(namelist[n]); in scan_tzones() 324 free(namelist); in scan_tzones() 339 struct dirent **namelist; in scan_cdevs() local 360 n = scandir(cdev_name, &namelist, 0, alphasort); in scan_cdevs() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/ia64/ |
D | aliasing-test.c | 64 struct dirent **namelist; in scan_tree() local 69 n = scandir(path, &namelist, 0, alphasort); in scan_tree() 76 name = namelist[i]->d_name; in scan_tree() 111 free(namelist[i]); in scan_tree() 113 free(namelist); in scan_tree() 149 struct dirent **namelist; in scan_rom() local 154 n = scandir(path, &namelist, 0, alphasort); in scan_rom() 161 name = namelist[i]->d_name; in scan_rom() 200 free(namelist[i]); in scan_rom() 202 free(namelist); in scan_rom()
|
/kernel/liteos_a/fs/vfs/operation/ |
D | vfs_other.c | 391 int scandir(const char *dir, struct dirent ***namelist, in scandir() argument 398 if ((dir == NULL) || (namelist == NULL)) { in scandir() 408 *namelist = (struct dirent **)malloc(n * sizeof(struct dirent *)); in scandir() 409 if (*namelist == NULL && n > 0) { in scandir() 410 *namelist = list; in scandir() 411 } else if (*namelist != NULL) { in scandir() 412 (void)memcpy_s(*namelist, n * sizeof(struct dirent *), list, n * sizeof(struct dirent *)); in scandir() 420 if (compar && *namelist) { in scandir() 421 …qsort((void *)*namelist, (size_t)n, sizeof(struct dirent *), (int (*)(const void *, const void *))… in scandir()
|
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/ |
D | vhci_driver.c | 158 struct dirent **namelist; in get_ncontrollers() local 166 n = scandir(udev_device_get_syspath(platform), &namelist, vhci_hcd_filter, NULL); in get_ncontrollers() 171 free(namelist[i]); in get_ncontrollers() 172 free(namelist); in get_ncontrollers()
|
/kernel/linux/linux-5.10/drivers/staging/greybus/tools/ |
D | loopback_test.c | 585 struct dirent **namelist; in find_loopback_devices() local 590 n = scandir(t->sysfs_prefix, &namelist, NULL, alphasort); in find_loopback_devices() 604 ret = sscanf(namelist[i]->d_name, "gb_loopback%u", &dev_id); in find_loopback_devices() 608 if (!is_loopback_device(t->sysfs_prefix, namelist[i]->d_name)) in find_loopback_devices() 632 free(namelist[i]); in find_loopback_devices() 633 free(namelist); in find_loopback_devices()
|
/kernel/linux/linux-5.10/sound/usb/ |
D | mixer.c | 2658 char **namelist; in parse_audio_selector_unit() local 2699 namelist = kcalloc(desc->bNrInPins, sizeof(char *), GFP_KERNEL); in parse_audio_selector_unit() 2700 if (!namelist) { in parse_audio_selector_unit() 2708 namelist[i] = kmalloc(MAX_ITEM_NAME_LEN, GFP_KERNEL); in parse_audio_selector_unit() 2709 if (!namelist[i]) { in parse_audio_selector_unit() 2713 len = check_mapped_selector_name(state, unitid, i, namelist[i], in parse_audio_selector_unit() 2716 len = get_term_name(state->chip, &iterm, namelist[i], in parse_audio_selector_unit() 2719 sprintf(namelist[i], "Input %u", i); in parse_audio_selector_unit() 2728 kctl->private_value = (unsigned long)namelist; in parse_audio_selector_unit() 2775 kfree(namelist[i]); in parse_audio_selector_unit() [all …]
|
/kernel/linux/linux-5.10/Documentation/admin-guide/ |
D | README.rst | 376 line (ignore the ``0010:``), and look it up in the kernel namelist to 381 the file 'linux/vmlinux'. To extract the namelist and match it against
|