Home
last modified time | relevance | path

Searched refs:d_name (Results 1 – 25 of 230) sorted by relevance

12345678910

/linux/tools/testing/selftests/proc/
A Dread.c83 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()
101 f_reg_write(d, de->d_name, "1", 1); in f()
103 f_reg_write(d, de->d_name, "1", 1); in f()
105 f_reg(d, de->d_name); in f()
109 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
[all …]
A Dproc-subset-pid.c88 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/fs/coda/
A Ddir.c44 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()
210 int len = de->d_name.len; in coda_link()
236 int len = de->d_name.len; in coda_symlink()
267 int len = de->d_name.len; in coda_unlink()
281 int len = de->d_name.len; in coda_rmdir()
[all …]
/linux/tools/thermal/tmon/
A Dsysfs.c171 if (strstr(d_name, "trip_point") && in find_tzone_tp()
172 strstr(d_name, "temp")) { in find_tzone_tp()
176 sysfs_get_ulong(tz_name, d_name, &temp_ulong); in find_tzone_tp()
180 tp_id = get_instance_id(d_name, 2, 0); in find_tzone_tp()
182 tz_name, tp_id, temp_ulong, d_name); in find_tzone_tp()
185 d_name); in find_tzone_tp()
400 if (strstr(namelist[n]->d_name, CDEV)) { in probe_thermal_sysfs()
401 inst = get_instance_id(namelist[n]->d_name, 1, in probe_thermal_sysfs()
410 namelist[n]->d_name, in probe_thermal_sysfs()
415 inst = get_instance_id(namelist[n]->d_name, 1, in probe_thermal_sysfs()
[all …]
/linux/tools/iio/
A Dlsiio.c50 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()
A Diio_utils.c123 if ((strcmp(builtname, 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()
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()
383 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
428 current->name = strndup(ent->d_name, in build_channel_array()
429 strlen(ent->d_name) - in build_channel_array()
584 if (strcmp(ent->d_name, ".") != 0 && in find_type_by_name()
585 strcmp(ent->d_name, "..") != 0 && in find_type_by_name()
[all …]
/linux/fs/jffs2/
A Ddir.c89 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()
104 !strncmp(fd_list->name, target->d_name.name, target->d_name.len)) { in jffs2_lookup()
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()
470 namelen = dentry->d_name.len; in jffs2_mkdir()
608 dentry->d_name.len, f, now); in jffs2_rmdir()
645 namelen = dentry->d_name.len; in jffs2_mknod()
814 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename()
[all …]
/linux/fs/ocfs2/
A Dnamei.c251 trace_ocfs2_mknod(dir, dentry, dentry->d_name.len, dentry->d_name.name, in ocfs2_mknod()
699 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_link()
700 dentry->d_name.len, dentry->d_name.name); in ocfs2_link()
1237 old_dentry->d_name.len, old_dentry->d_name.name, in ocfs2_rename()
1238 new_dentry->d_name.len, new_dentry->d_name.name); in ocfs2_rename()
1571 new_dentry->d_name.len, new_dentry->d_name.name, in ocfs2_rename()
1572 old_dentry->d_name.len, old_dentry->d_name.name); in ocfs2_rename()
1583 new_dentry->d_name.len, new_dentry->d_name.name, in ocfs2_rename()
1584 old_dentry->d_name.len, old_dentry->d_name.name); in ocfs2_rename()
1820 dentry->d_name.len, dentry->d_name.name); in ocfs2_symlink()
[all …]
A Ddcache.c47 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/tools/perf/util/
A Dtrace-event-info.c158 (strcmp(dent->d_name, ".")) && \
159 (strcmp(dent->d_name, ".."))) \
178 if (!name_in_tp_list(dent->d_name, tps)) in copy_event_system()
200 if (!name_in_tp_list(dent->d_name, tps)) 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()
297 if (asprintf(&sys, "%s/%s", path, dent->d_name) < 0) { in record_event_files()
303 ssize_t size = strlen(dent->d_name) + 1; in record_event_files()
[all …]
/linux/fs/orangefs/
A Dnamei.c44 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/scripts/dtc/
A Dfstree.c27 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/tools/power/acpi/os_specific/service_layers/
A Dosunixdir.c101 (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/fs/reiserfs/
A Dnamei.c368 reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, in reiserfs_lookup()
678 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create()
679 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_create()
929 reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, in reiserfs_rmdir()
1030 reiserfs_find_entry(dir, dentry->d_name.name, dentry->d_name.len, in reiserfs_unlink()
1180 dentry->d_name.len, inode, 1 /*visible */ ); in reiserfs_symlink()
1363 old_dentry->d_name.len, &old_entry_path, in reiserfs_rename()
1420 new_dentry->d_name.len, old_inode, 0); in reiserfs_rename()
1467 new_dentry->d_name.len, &new_entry_path, in reiserfs_rename()
1525 new_dentry->d_name.len, in reiserfs_rename()
[all …]
/linux/fs/fat/
A Dnamei_msdos.c210 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/fs/
A Dreaddir.c134 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
257 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in filldir()
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()
428 unsafe_copy_dirent_name(dirent->d_name, name, namlen, efault_end); in compat_fillonedir()
463 char d_name[1]; member
[all …]
A Ddcache.c291 name->name = dentry->d_name; in take_dentry_name_snapshot()
2235 dentry->d_name.len, dentry->d_name.name, in d_same_name()
2681 dentry->d_name.hash); in __d_lookup_done()
2793 swap(target->d_name.name, dentry->d_name.name); in swap_names()
2801 dentry->d_name.name = target->d_name.name; in swap_names()
2812 target->d_name.name = dentry->d_name.name; in swap_names()
2826 swap(dentry->d_name.hash_len, target->d_name.hash_len); in swap_names()
2836 dentry->d_name = target->d_name; in copy_name()
2839 target->d_name.len + 1); in copy_name()
2841 dentry->d_name.hash_len = target->d_name.hash_len; in copy_name()
[all …]
/linux/fs/hfs/
A Ddir.c31 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/fs/hfsplus/
A Ddir.c48 &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()
377 dir, &dentry->d_name, in hfsplus_unlink()
385 res = hfsplus_delete_cat(cnid, dir, &dentry->d_name); in hfsplus_unlink()
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()
498 res = hfsplus_init_security(inode, dir, &dentry->d_name); in hfsplus_mknod()
503 hfsplus_delete_cat(inode->i_ino, dir, &dentry->d_name); in hfsplus_mknod()
553 old_dir, &old_dentry->d_name, in hfsplus_rename()
[all …]
/linux/fs/efivarfs/
A Dinode.c81 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/fs/ntfs3/
A Dnamei.c76 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/fs/ext2/
A Dnamei.c62 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()
243 inode = ext2_new_inode(dir, S_IFDIR | mode, &dentry->d_name); in ext2_mkdir()
290 de = ext2_find_entry(dir, &dentry->d_name, &page, &page_addr); in ext2_unlink()
350 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_page, in ext2_rename()
373 new_de = ext2_find_entry(new_dir, &new_dentry->d_name, in ext2_rename()
/linux/fs/hpfs/
A Dnamei.c26 const unsigned char *name = dentry->d_name.name; in hpfs_mkdir()
27 unsigned len = dentry->d_name.len; in hpfs_mkdir()
135 const unsigned char *name = dentry->d_name.name; in hpfs_create()
136 unsigned len = dentry->d_name.len; in hpfs_create()
223 const unsigned char *name = dentry->d_name.name; in hpfs_mknod()
224 unsigned len = dentry->d_name.len; in hpfs_mknod()
299 unsigned len = dentry->d_name.len; in hpfs_symlink()
378 unsigned len = dentry->d_name.len; in hpfs_unlink()
429 unsigned len = dentry->d_name.len; in hpfs_rmdir()
519 unsigned old_len = old_dentry->d_name.len; in hpfs_rename()
[all …]
/linux/tools/testing/selftests/dmabuf-heaps/
A Ddmabuf-heap.c456 if (!strncmp(dir->d_name, ".", 2)) in main()
458 if (!strncmp(dir->d_name, "..", 3)) in main()
461 printf("Testing heap: %s\n", dir->d_name); in main()
463 ret = test_alloc_and_import(dir->d_name); in main()
467 ret = test_alloc_zeroed(dir->d_name, 4 * 1024); in main()
471 ret = test_alloc_zeroed(dir->d_name, ONE_MEG); in main()
475 ret = test_alloc_compat(dir->d_name); in main()
479 ret = test_alloc_errors(dir->d_name); in main()
/linux/fs/nfs/
A Dnfstrace.h290 __string(name, dentry->d_name.name)
297 __assign_str(name, dentry->d_name.name);
334 __string(name, dentry->d_name.name)
342 __assign_str(name, dentry->d_name.name);
385 __string(name, ctx->dentry->d_name.name)
461 __string(name, dentry->d_name.name)
496 __string(name, dentry->d_name.name)
529 __string(name, dentry->d_name.name)
567 __string(name, dentry->d_name.name)
621 __string(name, dentry->d_name.name)
[all …]

Completed in 43 milliseconds

12345678910