/linux-6.1.9/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.1.9/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() 338 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() 341 "%s/%s", scan_el_dir, ent->d_name); in build_channel_array() 383 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array() [all …]
|
/linux-6.1.9/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.1.9/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.1.9/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() 235 ret = jffs2_do_unlink(c, dir_f, dentry->d_name.name, in jffs2_unlink() 236 dentry->d_name.len, dead_f, now); in jffs2_unlink() 267 …ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now… in jffs2_link() 311 namelen = dentry->d_name.len; in jffs2_symlink() 375 ret = jffs2_init_security(inode, dir_i, &dentry->d_name); in jffs2_symlink() [all …]
|
/linux-6.1.9/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() 253 trace_ocfs2_mknod(dir, dentry, dentry->d_name.len, dentry->d_name.name, in ocfs2_mknod() 285 status = ocfs2_check_dir_for_entry(dir, dentry->d_name.name, in ocfs2_mknod() 286 dentry->d_name.len); in ocfs2_mknod() 292 dentry->d_name.name, in ocfs2_mknod() 293 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.1.9/tools/perf/util/ |
D | trace-event-info.c | 166 (strcmp(dent->d_name, ".")) && \ 167 (strcmp(dent->d_name, ".."))) \ 186 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system() 189 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 208 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system() 211 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 286 if (strcmp(dent->d_name, "ftrace") == 0 || in record_event_files() 287 !system_in_tp_list(dent->d_name, tps)) in record_event_files() 301 if (strcmp(dent->d_name, "ftrace") == 0 || in record_event_files() 302 !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()
|
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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() 96 dentry->d_name.name, namelen)) in efivarfs_create() 106 var->var.VariableName[i] = dentry->d_name.name[i]; in efivarfs_create()
|
/linux-6.1.9/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.1.9/fs/ |
D | readdir.c | 134 char d_name[1]; member 164 (unsigned long)(dirent->d_name + namlen + 1) - in fillonedir() 170 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in fillonedir() 211 char d_name[1]; member 229 int reclen = ALIGN(offsetof(struct linux_dirent, d_name) + namlen + 2, in filldir() 257 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir() 316 int reclen = ALIGN(offsetof(struct linux_dirent64, d_name) + namlen + 1, in filldir64() 339 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir64() 391 char d_name[1]; member 422 (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.1.9/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() 653 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_create() 678 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create() 679 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_create() 733 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mknod() 764 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mknod() 765 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_mknod() 825 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mkdir() 862 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mkdir() [all …]
|
/linux-6.1.9/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.1.9/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.1.9/fs/ntfs3/ |
D | namei.c | 76 err = ntfs_nls_to_utf16(ni->mi.sbi, dentry->d_name.name, in ntfs_lookup() 77 dentry->d_name.len, uni, NTFS_NAME_LEN, in ntfs_lookup() 258 is_same = dentry->d_name.len == new_dentry->d_name.len && in ntfs_rename() 259 !memcmp(dentry->d_name.name, new_dentry->d_name.name, in ntfs_rename() 260 dentry->d_name.len); in ntfs_rename() 289 err = fill_name_de(sbi, de, &dentry->d_name, NULL); in ntfs_rename() 299 err = fill_name_de(sbi, new_de, &new_dentry->d_name, NULL); in ntfs_rename()
|
/linux-6.1.9/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()
|
/linux-6.1.9/fs/ext2/ |
D | namei.c | 62 if (dentry->d_name.len > EXT2_NAME_LEN) in ext2_lookup() 65 res = ext2_inode_by_name(dir, &dentry->d_name, &ino); in ext2_lookup() 113 inode = ext2_new_inode(dir, mode, &dentry->d_name); in ext2_create() 146 inode = ext2_new_inode (dir, mode, &dentry->d_name); in ext2_mknod() 172 inode = ext2_new_inode (dir, S_IFLNK | S_IRWXUGO, &dentry->d_name); in ext2_symlink() 240 inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name); in ext2_mkdir() 284 de = ext2_find_entry(dir, &dentry->d_name, &page, &page_addr); in ext2_unlink() 344 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_page, in ext2_rename() 367 new_de = ext2_find_entry(new_dir, &new_dentry->d_name, in ext2_rename()
|