| /linux/fs/ |
| A D | readdir.c | 200 dirent = buf->dirent; in fillonedir() 203 (unsigned long)dirent)) in fillonedir() 225 .dirent = dirent in SYSCALL_DEFINE3() 285 dirent = buf->current_dir; in filldir() 316 .current_dir = dirent in SYSCALL_DEFINE3() 367 dirent = buf->current_dir; in filldir64() 399 .current_dir = dirent in SYSCALL_DEFINE3() 458 dirent = buf->dirent; in compat_fillonedir() 461 (unsigned long)dirent)) in compat_fillonedir() 483 .dirent = dirent in COMPAT_SYSCALL_DEFINE3() [all …]
|
| /linux/fs/fuse/ |
| A D | readdir.c | 122 return dir_emit(ctx, dirent->name, dirent->namelen, dirent->ino, in fuse_emit() 123 dirent->type); in fuse_emit() 132 if (!dirent->namelen || dirent->namelen > FUSE_NAME_MAX) in parse_dirfile() 136 if (memchr(dirent->name, '/', dirent->namelen) != NULL) in parse_dirfile() 155 struct fuse_dirent *dirent = &direntplus->dirent; in fuse_direntplus_link() local 157 struct qstr name = QSTR_INIT(dirent->name, dirent->namelen); in fuse_direntplus_link() 297 dirent = &direntplus->dirent; in parse_dirplusfile() 300 if (!dirent->namelen || dirent->namelen > FUSE_NAME_MAX) in parse_dirplusfile() 304 if (memchr(dirent->name, '/', dirent->namelen) != NULL) in parse_dirplusfile() 418 if (!dir_emit(ctx, dirent->name, dirent->namelen, in fuse_parse_cache() [all …]
|
| /linux/fs/bcachefs/ |
| A D | dirent.c | 170 struct bkey_i_dirent *dirent; in dirent_create_key() local 179 if (IS_ERR(dirent)) in dirent_create_key() 180 return dirent; in dirent_create_key() 183 dirent->k.u64s = u64s; in dirent_create_key() 192 dirent->v.d_type = type; in dirent_create_key() 202 return dirent; in dirent_create_key() 213 struct bkey_i_dirent *dirent; in bch2_dirent_create_snapshot() local 217 ret = PTR_ERR_OR_ZERO(dirent); in bch2_dirent_create_snapshot() 221 dirent->k.p.inode = dir; in bch2_dirent_create_snapshot() 238 struct bkey_i_dirent *dirent; in bch2_dirent_create() local [all …]
|
| /linux/tools/perf/util/ |
| A D | util.h | 31 struct dirent; 37 struct strlist *lsdir(const char *name, bool (*filter)(const char *, struct dirent *)); 38 bool lsdir_no_dot_filter(const char *name, struct dirent *d); 62 struct dirent ***namelist, 63 int (*filter)(const struct dirent *), 64 int (*compar)(const struct dirent **, const struct dirent **));
|
| A D | path.h | 8 struct dirent; 14 bool is_directory(const char *base_path, const struct dirent *dent); 15 bool is_executable_file(const char *base_path, const struct dirent *dent);
|
| A D | util.c | 155 struct dirent *d; in rm_rf_depth_pat() 221 static bool kcore_dir_filter(const char *name __maybe_unused, struct dirent *d) in kcore_dir_filter() 273 bool lsdir_no_dot_filter(const char *name __maybe_unused, struct dirent *d) in lsdir_no_dot_filter() 280 bool (*filter)(const char *, struct dirent *)) in lsdir() argument 284 struct dirent *d; in lsdir() 564 struct dirent ***namelist, in scandirat() 565 int (*filter)(const struct dirent *), in scandirat() argument 566 int (*compar)(const struct dirent **, const struct dirent **)) in scandirat() argument
|
| 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() 101 snprintf(path, sizeof(path), "/proc/%s", dirent->d_name); in __thread_map__new_all_cpus() 186 struct dirent **namelist = NULL; in thread_map__new_by_pid_str()
|
| A D | path.c | 59 bool is_directory(const char *base_path, const struct dirent *dent) in is_directory() 71 bool is_executable_file(const char *base_path, const struct dirent *dent) in is_executable_file()
|
| A D | synthetic-events.c | 756 static int filter_task(const struct dirent *dirent) in filter_task() argument 770 struct dirent **dirent; in __event__synthesize_thread() local 849 zfree(&dirent[i]); in __event__synthesize_thread() 850 free(dirent); in __event__synthesize_thread() 937 struct dirent **dirent, in __perf_event__synthesize_threads() argument 1001 struct dirent **dirent; member 1013 args->dirent, in synthesize_threads_worker() 1027 struct dirent **dirent; in perf_event__synthesize_threads() local 1074 args[i].dirent = dirent; in perf_event__synthesize_threads() 1101 zfree(&dirent[i]); in perf_event__synthesize_threads() [all …]
|
| A D | print-events.c | 68 struct dirent **sys_namelist = NULL; in print_tracepoint_events() 81 struct dirent *sys_dirent = sys_namelist[i]; in print_tracepoint_events() 82 struct dirent **evt_namelist = NULL; in print_tracepoint_events() 104 struct dirent *evt_dirent = evt_namelist[j]; in print_tracepoint_events()
|
| /linux/arch/alpha/kernel/ |
| 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/ |
| 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/tools/testing/selftests/proc/ |
| A D | proc.h | 43 static struct dirent *xreaddir(DIR *d) in xreaddir() 45 struct dirent *de; in xreaddir()
|
| /linux/drivers/nubus/ |
| 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/include/linux/ |
| 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/thermal/thermometer/ |
| A D | thermometer.c | 292 struct dirent *dirent; in thermometer_init() local 307 while ((dirent = readdir(dir))) { in thermometer_init() 312 if (strncmp(dirent->d_name, tz_dirname, strlen(tz_dirname))) in thermometer_init() 315 sprintf(tz_path, CLASS_THERMAL"/%s/type", dirent->d_name); in thermometer_init() 331 if (thermometer_add_tz(dirent->d_name, tz_type, in thermometer_init()
|
| /linux/fs/xfs/scrub/ |
| A D | dir_repair.c | 329 struct xrep_dirent dirent = { in xrep_dir_stash_createname() local 343 return xfarray_append(rd->dir_entries, &dirent); in xrep_dir_stash_createname() 356 struct xrep_dirent dirent = { in xrep_dir_stash_removename() local 370 return xfarray_append(rd->dir_entries, &dirent); in xrep_dir_stash_removename() 735 const struct xrep_dirent *dirent) in xrep_dir_replay_update() argument 753 switch (dirent->action) { in xrep_dir_replay_update() 791 if (ino != dirent->ino) { in xrep_dir_replay_update() 792 ASSERT(ino == dirent->ino); in xrep_dir_replay_update() 843 struct xrep_dirent dirent; in xrep_dir_replay_updates() local 850 &rd->xname, dirent.namelen); in xrep_dir_replay_updates() [all …]
|
| A D | dir.c | 954 struct xchk_dirent *dirent, in xchk_dir_slow_dirent() argument 964 error = xchk_dir_revalidate_dirent(sd, xname, dirent->ino); in xchk_dir_slow_dirent() 972 error = xchk_iget(sc, dirent->ino, &ip); in xchk_dir_slow_dirent() 1004 error = xchk_dir_revalidate_dirent(sd, xname, dirent->ino); in xchk_dir_slow_dirent() 1030 struct xchk_dirent dirent; in xchk_dir_finish_slow_dirents() local 1035 error = xfarray_load(sd->dir_entries, array_cur, &dirent); in xchk_dir_finish_slow_dirents() 1039 error = xfblob_loadname(sd->dir_names, dirent.name_cookie, in xchk_dir_finish_slow_dirents() 1040 &sd->xname, dirent.namelen); in xchk_dir_finish_slow_dirents() 1044 error = xchk_dir_slow_dirent(sd, &dirent, &sd->xname); in xchk_dir_finish_slow_dirents()
|
| /linux/tools/usb/usbip/libsrc/ |
| 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/ |
| A D | lsiio.c | 43 const struct dirent *ent; in dump_channels() 103 const struct dirent *ent; in dump_devices()
|
| /linux/net/9p/ |
| 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/testing/selftests/hid/ |
| A D | hid_common.h | 318 static bool match_sysfs_device(int dev_id, const char *workdir, struct dirent *dir) in match_sysfs_device() 353 struct dirent *dir; in get_hid_id() 385 struct dirent *dir, *subdir; in get_hidraw()
|
| /linux/tools/thermal/tmon/ |
| 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/ |
| A D | cached_dir.c | 607 struct cached_dirent *dirent, *q; in free_cached_dir() local 615 list_for_each_entry_safe(dirent, q, &cfid->dirents.entries, entry) { in free_cached_dir() 616 list_del(&dirent->entry); in free_cached_dir() 617 kfree(dirent->name); in free_cached_dir() 618 kfree(dirent); in free_cached_dir()
|
| A D | readdir.c | 802 struct cached_dirent *dirent; in emit_cached_dirents() local 805 list_for_each_entry(dirent, &cde->entries, entry) { in emit_cached_dirents() 810 if (ctx->pos > dirent->pos) in emit_cached_dirents() 824 ctx->pos = dirent->pos; in emit_cached_dirents() 825 rc = dir_emit(ctx, dirent->name, dirent->namelen, in emit_cached_dirents() 826 dirent->fattr.cf_uniqueid, in emit_cached_dirents() 827 dirent->fattr.cf_dtype); in emit_cached_dirents()
|