| /linux-6.15/fs/ |
| H A D | readdir.c | 200 dirent = buf->dirent; in fillonedir() 203 (unsigned long)dirent)) in fillonedir() 225 .dirent = dirent in SYSCALL_DEFINE3() 284 dirent = buf->current_dir; in filldir() 315 .current_dir = dirent in SYSCALL_DEFINE3() 364 dirent = buf->current_dir; in filldir64() 396 .current_dir = dirent in SYSCALL_DEFINE3() 453 dirent = buf->dirent; in compat_fillonedir() 456 (unsigned long)dirent)) in compat_fillonedir() 478 .dirent = dirent in COMPAT_SYSCALL_DEFINE3() [all …]
|
| /linux-6.15/fs/fuse/ |
| H 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() 298 dirent = &direntplus->dirent; in parse_dirplusfile() 301 if (!dirent->namelen || dirent->namelen > FUSE_NAME_MAX) in parse_dirplusfile() 305 if (memchr(dirent->name, '/', dirent->namelen) != NULL) in parse_dirplusfile() 421 if (!dir_emit(ctx, dirent->name, dirent->namelen, in fuse_parse_cache() [all …]
|
| /linux-6.15/fs/bcachefs/ |
| H A D | dirent.c | 233 struct bkey_i_dirent *dirent; in dirent_alloc_key() local 239 if (IS_ERR(dirent)) in dirent_alloc_key() 240 return dirent; in dirent_alloc_key() 243 dirent->k.u64s = u64s; in dirent_alloc_key() 252 dirent->v.d_type = type; in dirent_alloc_key() 253 dirent->v.d_unused = 0; in dirent_alloc_key() 256 return dirent; in dirent_alloc_key() 313 if (IS_ERR(dirent)) in dirent_create_key() 314 return dirent; in dirent_create_key() 323 return dirent; in dirent_create_key() [all …]
|
| /linux-6.15/tools/perf/util/ |
| H A D | util.h | 34 struct dirent; 40 struct strlist *lsdir(const char *name, bool (*filter)(const char *, struct dirent *)); 41 bool lsdir_no_dot_filter(const char *name, struct dirent *d); 57 struct dirent ***namelist, 58 int (*filter)(const struct dirent *), 59 int (*compar)(const struct dirent **, const struct dirent **));
|
| H A D | util.c | 161 struct dirent *d; in rm_rf_depth_pat() 227 static bool kcore_dir_filter(const char *name __maybe_unused, struct dirent *d) in kcore_dir_filter() 279 bool lsdir_no_dot_filter(const char *name __maybe_unused, struct dirent *d) in lsdir_no_dot_filter() 286 bool (*filter)(const char *, struct dirent *)) in lsdir() argument 290 struct dirent *d; in lsdir() 485 struct dirent ***namelist, in scandirat() 486 int (*filter)(const struct dirent *), in scandirat() argument 487 int (*compar)(const struct dirent **, const struct dirent **)) in scandirat() argument
|
| 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() 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()
|
| H A D | path.h | 8 struct dirent; 14 bool is_directory(const char *base_path, const struct dirent *dent);
|
| H A D | print-events.c | 54 struct dirent **sys_namelist = NULL; in print_tracepoint_events() 67 struct dirent *sys_dirent = sys_namelist[i]; in print_tracepoint_events() 68 struct dirent **evt_namelist = NULL; in print_tracepoint_events() 90 struct dirent *evt_dirent = evt_namelist[j]; in print_tracepoint_events()
|
| H A D | synthetic-events.c | 594 struct dirent *dent; in perf_event__walk_cgroup_tree() 757 static int filter_task(const struct dirent *dirent) in filter_task() argument 759 return isdigit(dirent->d_name[0]); in filter_task() 939 struct dirent **dirent, in __perf_event__synthesize_threads() argument 1003 struct dirent **dirent; member 1015 args->dirent, in synthesize_threads_worker() 1029 struct dirent **dirent; in perf_event__synthesize_threads() local 1054 dirent, base, n); in perf_event__synthesize_threads() 1076 args[i].dirent = dirent; in perf_event__synthesize_threads() 1103 zfree(&dirent[i]); in perf_event__synthesize_threads() [all …]
|
| /linux-6.15/tools/include/nolibc/ |
| H A D | dirent.h | 15 struct dirent { struct 59 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) in readdir_r()
|
| /linux-6.15/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-6.15/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-6.15/tools/testing/selftests/proc/ |
| H A D | proc.h | 43 static struct dirent *xreaddir(DIR *d) in xreaddir() 45 struct dirent *de; in xreaddir()
|
| /linux-6.15/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-6.15/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-6.15/tools/thermal/thermometer/ |
| H A D | thermometer.c | 293 struct dirent *dirent; in thermometer_init() local 308 while ((dirent = readdir(dir))) { in thermometer_init() 313 if (strncmp(dirent->d_name, tz_dirname, strlen(tz_dirname))) in thermometer_init() 316 sprintf(tz_path, CLASS_THERMAL"/%s/type", dirent->d_name); in thermometer_init() 332 if (thermometer_add_tz(dirent->d_name, tz_type, in thermometer_init()
|
| /linux-6.15/fs/xfs/scrub/ |
| H 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() 741 const struct xrep_dirent *dirent) in xrep_dir_replay_update() argument 759 switch (dirent->action) { in xrep_dir_replay_update() 797 if (ino != dirent->ino) { in xrep_dir_replay_update() 798 ASSERT(ino == dirent->ino); in xrep_dir_replay_update() 849 struct xrep_dirent dirent; in xrep_dir_replay_updates() local 856 &rd->xname, dirent.namelen); in xrep_dir_replay_updates() [all …]
|
| H A D | dir.c | 962 struct xchk_dirent *dirent, in xchk_dir_slow_dirent() argument 972 error = xchk_dir_revalidate_dirent(sd, xname, dirent->ino); in xchk_dir_slow_dirent() 980 error = xchk_iget(sc, dirent->ino, &ip); in xchk_dir_slow_dirent() 1012 error = xchk_dir_revalidate_dirent(sd, xname, dirent->ino); in xchk_dir_slow_dirent() 1038 struct xchk_dirent dirent; in xchk_dir_finish_slow_dirents() local 1043 error = xfarray_load(sd->dir_entries, array_cur, &dirent); in xchk_dir_finish_slow_dirents() 1047 error = xfblob_loadname(sd->dir_names, dirent.name_cookie, in xchk_dir_finish_slow_dirents() 1048 &sd->xname, dirent.namelen); in xchk_dir_finish_slow_dirents() 1052 error = xchk_dir_slow_dirent(sd, &dirent, &sd->xname); in xchk_dir_finish_slow_dirents()
|
| /linux-6.15/Documentation/filesystems/bcachefs/ |
| H A D | casefolding.rst | 27 On the dirent side: casefolding is implemented by ensuring the `bkey`'s 29 name with the regular name in the dirent. 33 * Regular: [dirent data][regular name][nul][nul]... 34 * Casefolded: [dirent data][reg len][cf len][regular name][casefolded name][nul][nul]... 61 The option settled on was to use a free-bit in d_type to mark a dirent as having
|
| /linux-6.15/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-6.15/tools/iio/ |
| H A D | lsiio.c | 43 const struct dirent *ent; in dump_channels() 103 const struct dirent *ent; in dump_devices()
|
| /linux-6.15/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-6.15/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-6.15/tools/lib/api/fs/ |
| H A D | tracing_path.h | 9 int tracing_events__scandir_alphasort(struct dirent ***namelist);
|
| /linux-6.15/tools/testing/selftests/ia64/ |
| H A D | aliasing-test.c | 64 struct dirent **namelist; in scan_tree() 149 struct dirent **namelist; in scan_rom()
|