/linux-6.6.21/tools/testing/selftests/proc/ |
D | read.c | 83 assert(streq(de->d_name, ".")); in f() 87 assert(streq(de->d_name, "..")); in f() 90 assert(!streq(de->d_name, ".")); in f() 91 assert(!streq(de->d_name, "..")); in f() 98 if (level == 0 && streq(de->d_name, "sysrq-trigger")) { in f() 99 f_reg_write(d, de->d_name, "h", 1); in f() 100 } else if (level == 1 && streq(de->d_name, "clear_refs")) { in f() 101 f_reg_write(d, de->d_name, "1", 1); in f() 102 } else if (level == 3 && streq(de->d_name, "clear_refs")) { in f() 103 f_reg_write(d, de->d_name, "1", 1); in f() [all …]
|
D | proc-subset-pid.c | 88 if (streq(de->d_name, ".")) { in main() 92 } else if (streq(de->d_name, "..")) { in main() 96 } else if (streq(de->d_name, "self")) { in main() 100 } else if (streq(de->d_name, "thread-self")) { in main() 105 if (!string_is_pid(de->d_name)) { in main() 106 fprintf(stderr, "d_name '%s'\n", de->d_name); in main()
|
/linux-6.6.21/tools/iio/ |
D | lsiio.c | 50 if (check_prefix(ent->d_name, "in_") && in dump_channels() 51 (check_postfix(ent->d_name, "_raw") || in dump_channels() 52 check_postfix(ent->d_name, "_input"))) in dump_channels() 53 printf(" %-10s\n", ent->d_name); in dump_channels() 114 if (check_prefix(ent->d_name, type_device)) { in dump_devices() 118 ent->d_name) < 0) { in dump_devices() 136 if (check_prefix(ent->d_name, type_trigger)) { in dump_devices() 140 ent->d_name) < 0) { in dump_devices()
|
D | iio_utils.c | 123 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type() 124 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type() 126 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type() 181 if (strcmp(builtname, ent->d_name) == 0) in iioutils_get_type() 248 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float() 249 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float() 251 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float() 339 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 342 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array() 381 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() [all …]
|
/linux-6.6.21/fs/coda/ |
D | dir.c | 44 const char *name = entry->d_name.name; in coda_lookup() 45 size_t length = entry->d_name.len; in coda_lookup() 140 const char *name=de->d_name.name; in coda_create() 141 int length=de->d_name.len; in coda_create() 174 const char *name = de->d_name.name; in coda_mkdir() 175 int len = de->d_name.len; in coda_mkdir() 209 const char * name = de->d_name.name; in coda_link() 210 int len = de->d_name.len; in coda_link() 235 const char *name = de->d_name.name; in coda_symlink() 236 int len = de->d_name.len; in coda_symlink() [all …]
|
/linux-6.6.21/tools/thermal/tmon/ |
D | sysfs.c | 166 static int find_tzone_tp(char *tz_name, char *d_name, struct tz_info *tzi, in find_tzone_tp() argument 172 if (strstr(d_name, "trip_point") && in find_tzone_tp() 173 strstr(d_name, "temp")) { in find_tzone_tp() 177 sysfs_get_ulong(tz_name, d_name, &temp_ulong); in find_tzone_tp() 181 tp_id = get_instance_id(d_name, 2, 0); in find_tzone_tp() 183 tz_name, tp_id, temp_ulong, d_name); in find_tzone_tp() 186 d_name); in find_tzone_tp() 208 syslog(LOG_DEBUG, "TZ%d: cdev: %s cid %d\n", tz_id, nl->d_name, in find_tzone_cdev() 218 tz_name, nl->d_name); in find_tzone_cdev() 232 "%s%s", nl->d_name, "_trip_point"); in find_tzone_cdev() [all …]
|
/linux-6.6.21/fs/jffs2/ |
D | dir.c | 89 if (target->d_name.len > JFFS2_MAX_NAME_LEN) in jffs2_lookup() 95 nhash = full_name_hash(NULL, target->d_name.name, target->d_name.len); in jffs2_lookup() 103 strlen(fd_list->name) == target->d_name.len && in jffs2_lookup() 104 !strncmp(fd_list->name, target->d_name.name, target->d_name.len)) { in jffs2_lookup() 203 ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name); in jffs2_create() 236 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name, in jffs2_unlink() 237 dentry->d_name.len, dead_f, now); in jffs2_unlink() 268 …ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now… in jffs2_link() 312 namelen = dentry->d_name.len; in jffs2_symlink() 376 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_symlink() [all …]
|
/linux-6.6.21/fs/ocfs2/ |
D | namei.c | 105 trace_ocfs2_lookup(dir, dentry, dentry->d_name.len, in ocfs2_lookup() 106 dentry->d_name.name, in ocfs2_lookup() 109 if (dentry->d_name.len > OCFS2_MAX_FILENAME_LEN) { in ocfs2_lookup() 122 status = ocfs2_lookup_ino_from_name(dir, dentry->d_name.name, in ocfs2_lookup() 123 dentry->d_name.len, &blkno); in ocfs2_lookup() 254 trace_ocfs2_mknod(dir, dentry, dentry->d_name.len, dentry->d_name.name, in ocfs2_mknod() 286 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, in ocfs2_mknod() 287 dentry->d_name.len); in ocfs2_mknod() 293 dentry->d_name.name, in ocfs2_mknod() 294 dentry->d_name.len, &lookup); in ocfs2_mknod() [all …]
|
D | dcache.c | 47 trace_ocfs2_dentry_revalidate(dentry, dentry->d_name.len, in ocfs2_dentry_revalidate() 48 dentry->d_name.name); in ocfs2_dentry_revalidate() 60 trace_ocfs2_dentry_revalidate_negative(dentry->d_name.len, in ocfs2_dentry_revalidate() 61 dentry->d_name.name, in ocfs2_dentry_revalidate() 162 trace_ocfs2_find_local_alias(dentry->d_name.len, in ocfs2_find_local_alias() 163 dentry->d_name.name); in ocfs2_find_local_alias() 218 trace_ocfs2_dentry_attach_lock(dentry->d_name.len, dentry->d_name.name, in ocfs2_dentry_attach_lock()
|
/linux-6.6.21/tools/perf/util/ |
D | trace-event-info.c | 158 (strcmp(dent->d_name, ".")) && \ 159 (strcmp(dent->d_name, ".."))) \ 178 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system() 181 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 200 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system() 203 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 278 if (strcmp(dent->d_name, "ftrace") == 0 || in record_event_files() 279 !system_in_tp_list(dent->d_name, tps)) in record_event_files() 293 if (strcmp(dent->d_name, "ftrace") == 0 || in record_event_files() 294 !system_in_tp_list(dent->d_name, tps)) in record_event_files() [all …]
|
D | tracepoint.h | 13 (strcmp(evt_dirent->d_name, ".")) && \ 14 (strcmp(evt_dirent->d_name, "..")) && \ 20 (strcmp(sys_dirent->d_name, ".")) && \ 21 (strcmp(sys_dirent->d_name, "..")))
|
D | tracepoint.c | 17 snprintf(evt_path, MAXPATHLEN, "%s/%s/id", dir_path, evt_dir->d_name); in tp_event_has_id() 41 dir_path = get_events_file(sys_dirent->d_name); in is_valid_tracepoint() 50 sys_dirent->d_name, evt_dirent->d_name); in is_valid_tracepoint()
|
D | print-events.c | 85 !strcmp(sys_dirent->d_name, ".") || in print_tracepoint_events() 86 !strcmp(sys_dirent->d_name, "..")) in print_tracepoint_events() 89 dir_fd = openat(events_fd, sys_dirent->d_name, O_PATH); in print_tracepoint_events() 93 evt_items = scandirat(events_fd, sys_dirent->d_name, &evt_namelist, NULL, alphasort); in print_tracepoint_events() 100 !strcmp(evt_dirent->d_name, ".") || in print_tracepoint_events() 101 !strcmp(evt_dirent->d_name, "..")) in print_tracepoint_events() 104 snprintf(evt_path, sizeof(evt_path), "%s/id", evt_dirent->d_name); in print_tracepoint_events() 111 sys_dirent->d_name, evt_dirent->d_name); in print_tracepoint_events()
|
/linux-6.6.21/scripts/dtc/ |
D | fstree.c | 27 if (streq(de->d_name, ".") in read_fstree() 28 || streq(de->d_name, "..")) in read_fstree() 31 tmpname = join_path(dirname, de->d_name); in read_fstree() 46 prop = build_property(xstrdup(de->d_name), in read_fstree() 57 newchild = name_node(newchild, xstrdup(de->d_name)); in read_fstree()
|
/linux-6.6.21/tools/power/acpi/os_specific/service_layers/ |
D | osunixdir.c | 101 (external_info->wildcard_spec, dir_entry->d_name, 0)) { in acpi_os_get_next_filename() 102 if (dir_entry->d_name[0] == '.') { in acpi_os_get_next_filename() 106 str_len = strlen(dir_entry->d_name) + in acpi_os_get_next_filename() 118 strcat(temp_str, dir_entry->d_name); in acpi_os_get_next_filename() 141 dir_entry->d_name); in acpi_os_get_next_filename()
|
/linux-6.6.21/fs/orangefs/ |
D | namei.c | 44 strncpy(new_op->upcall.req.create.d_name, in orangefs_create() 45 dentry->d_name.name, ORANGEFS_NAME_MAX - 1); in orangefs_create() 124 if (dentry->d_name.len > (ORANGEFS_NAME_MAX - 1)) in orangefs_lookup() 140 strncpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name, in orangefs_lookup() 146 new_op->upcall.req.lookup.d_name, in orangefs_lookup() 195 strncpy(new_op->upcall.req.remove.d_name, dentry->d_name.name, in orangefs_unlink() 251 dentry->d_name.name, in orangefs_symlink() 327 strncpy(new_op->upcall.req.mkdir.d_name, in orangefs_mkdir() 328 dentry->d_name.name, ORANGEFS_NAME_MAX - 1); in orangefs_mkdir() 409 old_dentry->d_name.name, in orangefs_rename() [all …]
|
/linux-6.6.21/fs/efivarfs/ |
D | inode.c | 81 if (!efivarfs_valid_name(dentry->d_name.name, dentry->d_name.len)) in efivarfs_create() 89 namelen = dentry->d_name.len - EFI_VARIABLE_GUID_LEN - 1; in efivarfs_create() 91 err = guid_parse(dentry->d_name.name + namelen + 1, &var->var.VendorGuid); in efivarfs_create() 100 dentry->d_name.name, namelen)) in efivarfs_create() 110 var->var.VariableName[i] = dentry->d_name.name[i]; in efivarfs_create()
|
/linux-6.6.21/fs/hfs/ |
D | dir.c | 31 hfs_cat_build_key(dir->i_sb, fd.search_key, dir->i_ino, &dentry->d_name); in hfs_lookup() 198 inode = hfs_new_inode(dir, &dentry->d_name, mode); in hfs_create() 202 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_create() 228 inode = hfs_new_inode(dir, &dentry->d_name, S_IFDIR | mode); in hfs_mkdir() 232 res = hfs_cat_create(inode->i_ino, dir, &dentry->d_name, inode); in hfs_mkdir() 262 res = hfs_cat_delete(inode->i_ino, dir, &dentry->d_name); in hfs_remove() 300 old_dir, &old_dentry->d_name, in hfs_rename() 301 new_dir, &new_dentry->d_name); in hfs_rename() 305 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
|
/linux-6.6.21/fs/ |
D | readdir.c | 170 char d_name[]; member 200 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir() 206 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in fillonedir() 247 char d_name[]; member 265 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() 293 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir() 352 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() 375 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir64() 427 char d_name[]; member 458 (unsigned long)(dirent->d_name + namlen + 1) - in compat_fillonedir() [all …]
|
D | dcache.c | 276 const unsigned char *cs = READ_ONCE(dentry->d_name.name); in dentry_cmp() 291 return container_of(dentry->d_name.name, struct external_name, name[0]); in external_name() 310 return dentry->d_name.name != dentry->d_iname; in dname_external() 316 name->name = dentry->d_name; in take_dentry_name_snapshot() 321 dentry->d_name.len + 1); in take_dentry_name_snapshot() 497 b = d_hash(dentry->d_name.hash); in ___d_drop() 1799 dentry->d_name.len = name->len; in __d_alloc() 1800 dentry->d_name.hash = name->hash; in __d_alloc() 1805 smp_store_release(&dentry->d_name.name, dname); /* ^^^ */ in __d_alloc() 2263 if (dentry->d_name.len != name->len) in d_same_name() [all …]
|
/linux-6.6.21/fs/reiserfs/ |
D | namei.c | 361 if (REISERFS_MAX_NAME(dir->i_sb->s_blocksize) < dentry->d_name.len) in reiserfs_lookup() 368 reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, in reiserfs_lookup() 651 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_create() 676 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create() 677 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_create() 731 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mknod() 762 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mknod() 763 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_mknod() 823 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mkdir() 860 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mkdir() [all …]
|
/linux-6.6.21/fs/fat/ |
D | namei_msdos.c | 210 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_lookup() 276 err = msdos_format_name(dentry->d_name.name, dentry->d_name.len, in msdos_create() 280 is_hid = (dentry->d_name.name[0] == '.') && (msdos_name[0] != '.'); in msdos_create() 321 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_rmdir() 354 err = msdos_format_name(dentry->d_name.name, dentry->d_name.len, in msdos_mkdir() 358 is_hid = (dentry->d_name.name[0] == '.') && (msdos_name[0] != '.'); in msdos_mkdir() 410 err = msdos_find(dir, dentry->d_name.name, dentry->d_name.len, &sinfo); in msdos_unlink() 611 err = msdos_format_name(old_dentry->d_name.name, in msdos_rename() 612 old_dentry->d_name.len, old_msdos_name, in msdos_rename() 616 err = msdos_format_name(new_dentry->d_name.name, in msdos_rename() [all …]
|
/linux-6.6.21/fs/hfsplus/ |
D | dir.c | 48 &dentry->d_name); in hfsplus_lookup() 324 src_dir, &src_dentry->d_name, in hfsplus_link() 335 &src_dentry->d_name, inode); in hfsplus_link() 342 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link() 377 dir, &dentry->d_name, in hfsplus_unlink() 385 res = hfsplus_delete_cat(cnid, dir, &dentry->d_name); in hfsplus_unlink() 425 res = hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_rmdir() 453 res = hfsplus_create_cat(inode->i_ino, dir, &dentry->d_name, inode); in hfsplus_symlink() 457 res = hfsplus_init_security(inode, dir, &dentry->d_name); in hfsplus_symlink() 462 hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_symlink() [all …]
|
/linux-6.6.21/tools/tracing/rtla/src/ |
D | utils.c | 276 if (*proc_entry->d_name == '.') in procfs_is_workload_pid() 280 for (t_name = proc_entry->d_name; t_name; t_name++) { in procfs_is_workload_pid() 288 snprintf(buffer, MAX_PATH, "/proc/%s/comm", proc_entry->d_name); in procfs_is_workload_pid() 306 debug_msg("Found workload pid:%s comm:%s", proc_entry->d_name, buffer); in procfs_is_workload_pid() 344 retval = __set_sched_attr(atoi(proc_entry->d_name), attr); in set_comm_sched_attr() 346 err_msg("Error setting sched attributes for pid:%s\n", proc_entry->d_name); in set_comm_sched_attr() 350 debug_msg("Set sched attributes for pid:%s\n", proc_entry->d_name); in set_comm_sched_attr() 744 retval = write(cg_fd, proc_entry->d_name, strlen(proc_entry->d_name)); in set_comm_cgroup() 747 proc_entry->d_name, strerror(errno)); in set_comm_cgroup() 751 debug_msg("Set cgroup attributes for pid:%s\n", proc_entry->d_name); in set_comm_cgroup()
|
/linux-6.6.21/tools/perf/tests/ |
D | builtin-test-list.c | 169 if (ent->d_name[0] == '.') in append_scripts_in_dir() 171 if (is_test_script(path, ent->d_name)) { /* It's a test */ in append_scripts_in_dir() 174 (bf, sizeof(bf), path, ent->d_name); in append_scripts_in_dir() 177 append_script(path, ent->d_name, desc); in append_scripts_in_dir() 180 path, ent->d_name); in append_scripts_in_dir()
|