/linux/fs/ |
A D | readdir.c | 162 dirent = buf->dirent; in fillonedir() 165 (unsigned long)dirent)) in fillonedir() 187 .dirent = dirent in SYSCALL_DEFINE3() 247 dirent = buf->current_dir; in filldir() 278 .current_dir = dirent in SYSCALL_DEFINE3() 329 dirent = buf->current_dir; in filldir64() 361 .current_dir = dirent in SYSCALL_DEFINE3() 420 dirent = buf->dirent; in compat_fillonedir() 423 (unsigned long)dirent)) in compat_fillonedir() 445 .dirent = dirent in COMPAT_SYSCALL_DEFINE3() [all …]
|
/linux/fs/fuse/ |
A D | readdir.c | 120 return dir_emit(ctx, dirent->name, dirent->namelen, dirent->ino, in fuse_emit() 121 dirent->type); in fuse_emit() 130 if (!dirent->namelen || dirent->namelen > FUSE_NAME_MAX) in parse_dirfile() 134 if (memchr(dirent->name, '/', dirent->namelen) != NULL) in parse_dirfile() 153 struct fuse_dirent *dirent = &direntplus->dirent; in fuse_direntplus_link() local 155 struct qstr name = QSTR_INIT(dirent->name, dirent->namelen); in fuse_direntplus_link() 287 dirent = &direntplus->dirent; in parse_dirplusfile() 290 if (!dirent->namelen || dirent->namelen > FUSE_NAME_MAX) in parse_dirplusfile() 294 if (memchr(dirent->name, '/', dirent->namelen) != NULL) in parse_dirplusfile() 408 if (!dir_emit(ctx, dirent->name, dirent->namelen, in fuse_parse_cache() [all …]
|
/linux/tools/perf/util/ |
A D | thread_map.c | 23 static int filter(const struct dirent *dir) in filter() 38 struct dirent **namelist = NULL; in thread_map__new_by_pid() 79 struct dirent *dirent, **namelist = NULL; in __thread_map__new_all_cpus() local 92 while ((dirent = readdir(proc)) != NULL) { in __thread_map__new_all_cpus() 95 pid_t pid = strtol(dirent->d_name, &end, 10); in __thread_map__new_all_cpus() 100 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 | util.h | 19 struct dirent; 25 struct strlist *lsdir(const char *name, bool (*filter)(const char *, struct dirent *)); 26 bool lsdir_no_dot_filter(const char *name, struct dirent *d);
|
A D | path.h | 8 struct dirent; 14 bool is_directory(const char *base_path, const struct dirent *dent);
|
A D | synthetic-events.c | 708 static int filter_task(const struct dirent *dirent) in filter_task() argument 722 struct dirent **dirent; in __event__synthesize_thread() local 800 zfree(&dirent[i]); in __event__synthesize_thread() 801 free(dirent); in __event__synthesize_thread() 888 struct dirent **dirent, in __perf_event__synthesize_threads() argument 952 struct dirent **dirent; member 964 args->dirent, in synthesize_threads_worker() 978 struct dirent **dirent; in perf_event__synthesize_threads() local 1025 args[i].dirent = dirent; in perf_event__synthesize_threads() 1052 zfree(&dirent[i]); in perf_event__synthesize_threads() [all …]
|
A D | util.c | 152 struct dirent *d; in rm_rf_depth_pat() 237 bool lsdir_no_dot_filter(const char *name __maybe_unused, struct dirent *d) in lsdir_no_dot_filter() 244 bool (*filter)(const char *, struct dirent *)) in lsdir() argument 248 struct dirent *d; in lsdir()
|
A D | path.c | 84 bool is_directory(const char *base_path, const struct dirent *dent) in is_directory()
|
/linux/drivers/nubus/ |
A D | nubus.c | 163 void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent, in nubus_get_rsrc_mem() argument 167 unsigned char *p = nubus_dirptr(dirent); in nubus_get_rsrc_mem() 170 *t++ = nubus_get_rom(&p, 1, dirent->mask); in nubus_get_rsrc_mem() 176 unsigned int nubus_get_rsrc_str(char *dest, const struct nubus_dirent *dirent, in nubus_get_rsrc_str() argument 180 unsigned char *p = nubus_dirptr(dirent); in nubus_get_rsrc_str() 183 unsigned char c = nubus_get_rom(&p, 1, dirent->mask); in nubus_get_rsrc_str() 197 const struct nubus_dirent *dirent, in nubus_seq_write_rsrc_mem() argument 202 unsigned char *p = nubus_dirptr(dirent); in nubus_seq_write_rsrc_mem() 210 dirent->mask); in nubus_seq_write_rsrc_mem() 216 seq_putc(m, nubus_get_rom(&p, 1, dirent->mask)); in nubus_seq_write_rsrc_mem()
|
/linux/arch/alpha/kernel/ |
A D | osf_sys.c | 104 struct osf_dirent __user *dirent; member 114 struct osf_dirent __user *dirent; in osf_filldir() local 133 dirent = buf->dirent; in osf_filldir() 134 if (put_user(d_ino, &dirent->d_ino) || in osf_filldir() 135 put_user(namlen, &dirent->d_namlen) || in osf_filldir() 136 put_user(reclen, &dirent->d_reclen) || in osf_filldir() 137 copy_to_user(dirent->d_name, name, namlen) || in osf_filldir() 138 put_user(0, dirent->d_name + namlen)) in osf_filldir() 140 dirent = (void __user *)dirent + reclen; in osf_filldir() 141 buf->dirent = dirent; in osf_filldir() [all …]
|
/linux/include/linux/ |
A D | nubus.h | 156 void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent *dirent, 158 unsigned int nubus_get_rsrc_str(char *dest, const struct nubus_dirent *dirent, 161 const struct nubus_dirent *dirent,
|
/linux/tools/testing/selftests/proc/ |
A D | proc.h | 43 static struct dirent *xreaddir(DIR *d) in xreaddir() 45 struct dirent *de; in xreaddir()
|
A D | proc-tid0.c | 67 struct dirent *de; in main()
|
/linux/tools/perf/tests/ |
A D | builtin-test.c | 324 struct dirent **entlist; in shell_tests__max_desc_width() 325 struct dirent *ent; in shell_tests__max_desc_width() 382 struct dirent **entlist; in run_shell_tests() 383 struct dirent *ent; in run_shell_tests() 525 struct dirent **entlist; in perf_test__list_shell() 526 struct dirent *ent; in perf_test__list_shell()
|
/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/net/9p/ |
A D | protocol.c | 595 struct p9_dirent *dirent) in p9dirent_read() argument 606 ret = p9pdu_readf(&fake_pdu, clnt->proto_version, "Qqbs", &dirent->qid, in p9dirent_read() 607 &dirent->d_off, &dirent->d_type, &nameptr); in p9dirent_read() 614 ret = strscpy(dirent->d_name, nameptr, sizeof(dirent->d_name)); in p9dirent_read()
|
/linux/tools/iio/ |
A D | lsiio.c | 43 const struct dirent *ent; in dump_channels() 103 const struct dirent *ent; in dump_devices()
|
A D | iio_utils.c | 98 const struct dirent *ent; in iioutils_get_type() 227 const struct dirent *ent; in iioutils_get_param_float() 322 const struct dirent *ent; in build_channel_array() 569 const struct dirent *ent; in find_type_by_name()
|
/linux/tools/thermal/tmon/ |
A D | sysfs.c | 197 static int find_tzone_cdev(struct dirent *nl, char *tz_name, in find_tzone_cdev() 281 struct dirent **namelist; in scan_tzones() 339 struct dirent **namelist; in scan_cdevs() 384 struct dirent **namelist; in probe_thermal_sysfs()
|
/linux/tools/testing/selftests/ia64/ |
A D | aliasing-test.c | 64 struct dirent **namelist; in scan_tree() 149 struct dirent **namelist; in scan_rom()
|
/linux/fs/hpfs/ |
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/include/uapi/linux/ |
A D | fuse.h | 876 struct fuse_dirent dirent; member 880 offsetof(struct fuse_direntplus, dirent.name) 882 FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET_DIRENTPLUS + (d)->dirent.namelen)
|
/linux/fs/ext4/ |
A D | namei.c | 84 struct ext4_dir_entry *dirent); 110 struct ext4_dir_entry *dirent; in __ext4_read_dirblock() local 134 dirent = (struct ext4_dir_entry *) bh->b_data; in __ext4_read_dirblock() 139 else if (ext4_rec_len_from_disk(dirent->rec_len, in __ext4_read_dirblock() 160 if (ext4_dx_csum_verify(inode, dirent) && in __ext4_read_dirblock() 414 struct ext4_dir_entry *dirent, in get_dx_countlimit() argument 423 else if (le16_to_cpu(dirent->rec_len) == 12) { in get_dx_countlimit() 424 dp = (struct ext4_dir_entry *)(((void *)dirent) + 12); in get_dx_countlimit() 460 struct ext4_dir_entry *dirent) in ext4_dx_csum_verify() argument 469 c = get_dx_countlimit(inode, dirent, &count_offset); in ext4_dx_csum_verify() [all …]
|
/linux/fs/fat/ |
A D | dir.c | 544 void __user *dirent; member 713 struct dirent_type __user *d1 = buf->dirent; \ 762 void __user *dirent, filldir_t filldir, in FAT_IOCTL_FILLDIR_FUNC() 767 .dirent = dirent in FAT_IOCTL_FILLDIR_FUNC() 771 buf.dirent = dirent; in FAT_IOCTL_FILLDIR_FUNC()
|
/linux/Documentation/userspace-api/ioctl/ |
A D | ioctl-decoding.rst | 31 #define VFAT_IOCTL_READDIR_BOTH _IOR('r', 1, struct dirent [2])
|