| /linux/tools/include/nolibc/ |
| H A D | dirent.h | 20 struct dirent { struct 64 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) in readdir_r()
|
| /linux/tools/perf/util/ |
| H A D | thread_map.c | 24 static int filter(const struct dirent *dir) in filter() 39 struct dirent **namelist = NULL; in thread_map__new_by_pid() 80 struct dirent *dirent, **namelist = NULL; in thread_map__new_all_cpus() local 93 while ((dirent = readdir(proc)) != NULL) { in thread_map__new_all_cpus() 96 pid_t pid = strtol(dirent->d_name, &end, 10); in thread_map__new_all_cpus() 164 struct dirent **namelist = NULL; in thread_map__new_by_pid_str()
|
| H A D | tracepoint.c | 14 int tp_event_has_id(const char *dir_path, struct dirent *evt_dir) in tp_event_has_id()
|
| H A D | synthetic-events.c | 600 struct dirent *dent; in perf_event__walk_cgroup_tree() 763 static int filter_task(const struct dirent *dirent) in filter_task() argument 765 return isdigit(dirent->d_name[0]); in filter_task() 945 struct dirent **dirent, in __perf_event__synthesize_threads() argument 975 if (!isdigit(dirent[i]->d_name[0])) in __perf_event__synthesize_threads() 978 pid = (pid_t)strtol(dirent[i]->d_name, &end, 10); in __perf_event__synthesize_threads() 1009 struct dirent **dirent; member 1021 args->dirent, in synthesize_threads_worker() 1035 struct dirent **dirent; in perf_event__synthesize_threads() local 1047 n = scandir(proc_path, &dirent, filter_task, NULL); in perf_event__synthesize_threads() [all …]
|
| H A D | tracepoint.h | 5 #include <dirent.h> 9 int tp_event_has_id(const char *dir_path, struct dirent *evt_dir);
|
| /linux/arch/alpha/kernel/ |
| H A D | osf_sys.c | 105 struct osf_dirent __user *dirent; member 115 struct osf_dirent __user *dirent; in osf_filldir() local 134 dirent = buf->dirent; in osf_filldir() 135 if (put_user(d_ino, &dirent->d_ino) || in osf_filldir() 136 put_user(namlen, &dirent->d_namlen) || in osf_filldir() 137 put_user(reclen, &dirent->d_reclen) || in osf_filldir() 138 copy_to_user(dirent->d_name, name, namlen) || in osf_filldir() 139 put_user(0, dirent->d_name + namlen)) in osf_filldir() 141 dirent = (void __user *)dirent + reclen; in osf_filldir() 142 buf->dirent = dirent; in osf_filldir() [all …]
|
| /linux/tools/testing/selftests/alsa/ |
| H A D | conf.c | 252 static int filename_filter(const struct dirent *dirent) in filename_filter() argument 256 if (dirent == NULL) in filename_filter() 258 if (dirent->d_type == DT_DIR) in filename_filter() 260 flen = strlen(dirent->d_name); in filename_filter() 263 if (strncmp(&dirent->d_name[flen-5], ".conf", 5) == 0) in filename_filter() 306 struct dirent **namelist; in conf_load()
|
| /linux/drivers/nubus/ |
| H A D | nubus.c | 170 void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent, in nubus_get_rsrc_mem() argument 174 unsigned char *p = nubus_dirptr(dirent); in nubus_get_rsrc_mem() 177 *t++ = nubus_get_rom(&p, 1, dirent->mask); in nubus_get_rsrc_mem() 183 unsigned int nubus_get_rsrc_str(char *dest, const struct nubus_dirent *dirent, in nubus_get_rsrc_str() argument 187 unsigned char *p = nubus_dirptr(dirent); in nubus_get_rsrc_str() 190 unsigned char c = nubus_get_rom(&p, 1, dirent->mask); in nubus_get_rsrc_str() 204 const struct nubus_dirent *dirent, in nubus_seq_write_rsrc_mem() argument 209 unsigned char *p = nubus_dirptr(dirent); in nubus_seq_write_rsrc_mem() 217 dirent->mask); in nubus_seq_write_rsrc_mem() 223 seq_putc(m, nubus_get_rom(&p, 1, dirent->mask)); in nubus_seq_write_rsrc_mem()
|
| /linux/fs/xfs/scrub/ |
| H A D | dir_repair.c | 329 struct xrep_dirent dirent = { in xrep_dir_stash_createname() local 339 error = xfblob_storename(rd->dir_names, &dirent.name_cookie, name); in xrep_dir_stash_createname() 343 return xfarray_append(rd->dir_entries, &dirent); in xrep_dir_stash_createname() 356 struct xrep_dirent dirent = { in xrep_dir_stash_removename() local 366 error = xfblob_storename(rd->dir_names, &dirent.name_cookie, name); in xrep_dir_stash_removename() 370 return xfarray_append(rd->dir_entries, &dirent); in xrep_dir_stash_removename() 741 const struct xrep_dirent *dirent) in xrep_dir_replay_update() argument 759 switch (dirent->action) { in xrep_dir_replay_update() 775 error = xrep_dir_replay_createname(rd, xname, dirent->ino, in xrep_dir_replay_update() 797 if (ino != dirent->ino) { in xrep_dir_replay_update() [all …]
|
| /linux/include/linux/ |
| H A D | nubus.h | 155 void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent, 157 unsigned int nubus_get_rsrc_str(char *dest, const struct nubus_dirent *dirent, 160 const struct nubus_dirent *dirent,
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc.h | 43 static struct dirent *xreaddir(DIR *d) in xreaddir() 45 struct dirent *de; in xreaddir()
|
| H A D | proc-tid0.c | 67 struct dirent *de; in main()
|
| /linux/tools/usb/usbip/libsrc/ |
| H A D | vhci_driver.c | 151 static int vhci_hcd_filter(const struct dirent *dirent) in vhci_hcd_filter() argument 153 return !strncmp(dirent->d_name, "vhci_hcd.", 9); in vhci_hcd_filter() 158 struct dirent **namelist; in get_ncontrollers()
|
| /linux/tools/iio/ |
| H A D | lsiio.c | 43 const struct dirent *ent; in dump_channels() 103 const struct dirent *ent; in dump_devices()
|
| H A D | iio_utils.c | 98 const struct dirent *ent; in iioutils_get_type() 227 const struct dirent *ent; in iioutils_get_param_float() 323 const struct dirent *ent; in build_channel_array() 562 const struct dirent *ent; in find_type_by_name()
|
| /linux/net/9p/ |
| H A D | protocol.c | 770 struct p9_dirent *dirent) in p9dirent_read() argument 781 ret = p9pdu_readf(&fake_pdu, clnt->proto_version, "Qqbs", &dirent->qid, in p9dirent_read() 782 &dirent->d_off, &dirent->d_type, &nameptr); in p9dirent_read() 789 ret = strscpy(dirent->d_name, nameptr, sizeof(dirent->d_name)); in p9dirent_read()
|
| /linux/tools/thermal/tmon/ |
| H A D | sysfs.c | 198 static int find_tzone_cdev(struct dirent *nl, char *tz_name, in find_tzone_cdev() 283 struct dirent **namelist; in scan_tzones() 341 struct dirent **namelist; in scan_cdevs() 386 struct dirent **namelist; in probe_thermal_sysfs()
|
| /linux/fs/smb/client/ |
| H A D | readdir.c | 820 struct cached_dirent *dirent; in emit_cached_dirents() local 823 list_for_each_entry(dirent, &cde->entries, entry) { in emit_cached_dirents() 828 if (ctx->pos > dirent->pos) in emit_cached_dirents() 842 ctx->pos = dirent->pos; in emit_cached_dirents() 843 rc = dir_emit(ctx, dirent->name, dirent->namelen, in emit_cached_dirents() 844 dirent->fattr.cf_uniqueid, in emit_cached_dirents() 845 dirent->fattr.cf_dtype); in emit_cached_dirents()
|
| H A D | cached_dir.c | 717 struct cached_dirent *dirent, *q; in free_cached_dir() local 728 list_for_each_entry_safe(dirent, q, &cfid->dirents.entries, entry) { in free_cached_dir() 729 list_del(&dirent->entry); in free_cached_dir() 730 kfree(dirent->name); in free_cached_dir() 731 kfree(dirent); in free_cached_dir()
|
| /linux/tools/testing/selftests/ia64/ |
| H A D | aliasing-test.c | 64 struct dirent **namelist; in scan_tree() 149 struct dirent **namelist; in scan_rom()
|
| /linux/tools/lib/api/fs/ |
| H A D | tracing_path.h | 9 int tracing_events__scandir_alphasort(struct dirent ***namelist);
|
| /linux/tools/testing/selftests/hid/ |
| H A D | hid_common.h | 319 static bool match_sysfs_device(struct uhid_device *hid, const char *workdir, struct dirent *dir) in match_sysfs_device() 356 struct dirent *dir; in get_hid_id() 388 struct dirent *dir, *subdir; in get_hidraw()
|
| /linux/tools/testing/selftests/perf_events/ |
| H A D | mmap.c | 59 static bool read_event_type(struct dirent *dent, __u32 *type) in read_event_type() 86 struct dirent *dent; in FIXTURE_SETUP()
|
| /linux/fs/hpfs/ |
| H A D | alloc.c | 446 d->dirent[0] = 32; in hpfs_alloc_dnode() 447 d->dirent[2] = 8; in hpfs_alloc_dnode() 448 d->dirent[30] = 1; in hpfs_alloc_dnode() 449 d->dirent[31] = 255; in hpfs_alloc_dnode()
|
| /linux/tools/perf/tests/ |
| H A D | tests-scripts.c | 230 struct dirent **entlist; in append_scripts_in_dir() 231 struct dirent *ent; in append_scripts_in_dir()
|